Skip to content

Commit

Permalink
Improve log message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
russss committed Dec 5, 2024
1 parent b6419e7 commit c6ef98e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polybot/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def auth(self):
if self.login_ratelimit_expiry > time():
self.log.warning(
"Not connecting to Bluesky as login rate limit is still active. "
"Will re-attempt connection in %s seconds.",
"Will re-attempt connection in %d seconds.",
self.login_ratelimit_expiry - time(),
)
return
Expand All @@ -372,7 +372,7 @@ def auth(self):
self.login_ratelimit_expiry = int(e.response.headers["ratelimit-reset"])
self.log.warning(
"Rate-limited by Bluesky when connecting. "
"Will re-attempt connection in %s seconds.",
"Will re-attempt connection in %d seconds.",
self.login_ratelimit_expiry - time(),
)
return
Expand Down

0 comments on commit c6ef98e

Please sign in to comment.