refactor: use __len__ for MailDebugRecorder, str() size estimate, clearer tests, fix unused import

Agent-Logs-Url: https://github.com/christianlouis/InboxConverge/sessions/5d2918de-630e-4a66-8355-1b036c620b1c

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-03 18:59:41 +00:00
committed by GitHub
parent aab60d6866
commit eeb3fa5c66
3 changed files with 27 additions and 23 deletions
+1 -1
View File
@@ -479,7 +479,7 @@ async def process_mail_account(account_id: int):
mail_account_id=account.id,
processing_run_id=run.id,
level="DEBUG",
message=f"Connection trace ({len(_debug_recorder._entries)} entries)",
message=f"Connection trace ({len(_debug_recorder)} entries)",
success=True,
error_details=_debug_recorder.as_details(),
)