From 90e4454d3e215d463495fc60304bb6deff42c30a Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 6 Jun 2024 03:19:50 +0200 Subject: [PATCH] fix: log activity id for failed jobs way easier to debug, also allows to select them back --- upub/worker/src/dispatcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upub/worker/src/dispatcher.rs b/upub/worker/src/dispatcher.rs index e59cd24..23282e2 100644 --- a/upub/worker/src/dispatcher.rs +++ b/upub/worker/src/dispatcher.rs @@ -113,7 +113,7 @@ impl JobDispatcher for Context { }; if let Err(e) = res { - tracing::error!("failed processing job #{}: {e}", job.internal); + tracing::error!("failed processing job '{}': {e}", job.activity); let active = job.clone().repeat(); if let Err(e) = model::job::Entity::insert(active) .exec(_ctx.db())