refactor(logging): use logger.exception to preserve stack traces

Unify error logging across services: replace logger.error(f"...{e}")
and logger.error(..., exc_info=True) with logger.exception() so the
stack trace is consistently captured.
This commit is contained in:
3252a8
2026-04-27 08:43:48 +03:00
parent f1113eb80a
commit d6b703debb
9 changed files with 68 additions and 71 deletions
+2 -2
View File
@@ -82,9 +82,9 @@ class MessageQueue:
self.total_failed += 1
logging.error(f"Failed to send queued message to {message.chat_id}: {exc}")
except Exception as e:
except Exception:
self.total_failed += 1
logging.error(f"Failed to send queued message to {message.chat_id}: {e}")
logging.exception("Failed to send queued message to %s.", message.chat_id)
finally:
self.is_processing = False