refactor(bot): ♻️ Replace % with , in logging calls.
This commit is contained in:
@@ -79,10 +79,10 @@ async def flush():
|
||||
except (
|
||||
asyncpg.exceptions.PostgresError,
|
||||
asyncpg.exceptions.InterfaceError,
|
||||
) as e:
|
||||
log.error(
|
||||
"[Call ID: %s] An error occured trying to flush messages for call ID. %s"
|
||||
% (call_id, e)
|
||||
):
|
||||
log.exception(
|
||||
"[Call ID: %s] An error occured trying to flush messages for call ID."
|
||||
% call_id
|
||||
)
|
||||
continue
|
||||
|
||||
@@ -96,10 +96,10 @@ async def flush():
|
||||
except (
|
||||
asyncpg.exceptions.PostgresError,
|
||||
asyncpg.exceptions.InterfaceError,
|
||||
) as e:
|
||||
log.error(
|
||||
"[Call ID: %s] An error occured trying to flush message contents. %s"
|
||||
% (call_id, e)
|
||||
):
|
||||
log.exception(
|
||||
"[Call ID: %s] An error occured trying to flush message contents."
|
||||
% call_id
|
||||
)
|
||||
continue
|
||||
|
||||
@@ -127,4 +127,4 @@ async def loop() -> None:
|
||||
await flush()
|
||||
|
||||
except (KeyboardInterrupt, asyncio.exceptions.CancelledError) as e:
|
||||
log.exception(e)
|
||||
log.exception('')
|
||||
|
||||
Reference in New Issue
Block a user