@cryptotaxi247 / CoPilot / commits / 28e76217

fix: improve error logging format in create_alert_auto_route (#859)

taylor_socfortress committed May 8, 2026 at 11:54 UTC 28e76217a9979fb34496fecdf05c036c3831ef4a
1 file changed +1 -2
backend/app/incidents/routes/incident_alert.py
+1 -2
@@ -296,8 +296,7 @@ async def create_alert_auto_route(
296 # Any other error — preserve the full traceback so the source line
297 # of the failure is in the log, not just the message.
298 logger.opt(exception=True).error(
299 - f"Failed to create alert {alert.id} from index {alert.index}: "
300 - f"{type(e).__name__}: {e}",
299 + f"Failed to create alert {alert.id} from index {alert.index}: " f"{type(e).__name__}: {e}",
300 )
301 batch_failed += 1
302 total_failed += 1