debug logs

This commit is contained in:
Colter Downing
2025-11-24 18:21:35 -08:00
parent ecc6a3ce0d
commit c772e1651b
3 changed files with 27 additions and 0 deletions
+2
View File
@@ -256,6 +256,7 @@ class Backend:
self.backend_errored(str(e))
async def _start_tracking(self) -> None:
log.info("Starting tracking tasks (read_logs, send_metrics_loop, healthcheck, send_delete_requests_loop)")
task_names = ["read_logs", "send_metrics_loop", "healthcheck", "send_delete_requests_loop"]
results = await gather(
self.__read_logs(),
@@ -265,6 +266,7 @@ class Backend:
return_exceptions=True
)
# If we get here, one or more tasks exited (they should run forever)
log.error(f"CRITICAL: _start_tracking gather returned! This should never happen. Results: {results}")
for name, result in zip(task_names, results):
if isinstance(result, Exception):
log.error(f"Tracking task '{name}' crashed with exception: {result}", exc_info=result)