perf(logging): optimize logging with rotation, async I/O, and lazy formatting

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Estrella Pan
2026-02-22 14:10:56 +01:00
parent c173454a67
commit 5f604e94fd
39 changed files with 198 additions and 116 deletions

View File

@@ -34,5 +34,5 @@ class TelegramNotification(RequestContent):
resp = await self.post_files(self.photo_url, data, files={"photo": photo})
else:
resp = await self.post_data(self.message_url, data)
logger.debug(f"Telegram notification: {resp.status_code}")
logger.debug("Telegram notification: %s", resp.status_code)
return resp.status_code == 200