refactor(bot): ♻️ Replace % with , in logging calls.

This commit is contained in:
Nyeki.py
2024-10-27 01:47:05 -03:00
parent 09d2808bd4
commit 85a437e3e6
3 changed files with 24 additions and 28 deletions
+9 -9
View File
@@ -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('')