Skip to content

Commit

Permalink
Change f-string to formatting into the logging messages for Batch Exe…
Browse files Browse the repository at this point in the history
…cutor (#37929)
  • Loading branch information
Taragolis committed Mar 6, 2024
1 parent 3a45244 commit 29acfb1
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -179,7 +179,7 @@ def sync(self):
if error_code in INVALID_CREDENTIALS_EXCEPTIONS:
self.IS_BOTO_CONNECTION_HEALTHY = False
self.log.warning(
f"AWS credentials are either missing or expired: {error}.\nRetrying connection"
"AWS credentials are either missing or expired: %s.\nRetrying connection", error
)
except Exception:
# We catch any and all exceptions because otherwise they would bubble
Expand Down Expand Up @@ -293,7 +293,8 @@ def attempt_submit_jobs(self):

if attempt_number >= int(self.__class__.MAX_SUBMIT_JOB_ATTEMPTS):
self.log.error(
f"This job has been unsuccessfully attempted too many times ({attempt_number}). Dropping the task."
"This job has been unsuccessfully attempted too many times (%s). Dropping the task.",
attempt_number,
)
self.fail(key=key)
else:
Expand Down

0 comments on commit 29acfb1

Please sign in to comment.