From a3495800b57e3cc585c0f638a73dc105f4a6f997 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 31 Aug 2023 21:09:18 +0200 Subject: [PATCH] :sparkles: Add minor logging improvements to worker namespace --- backend/src/app/worker.clj | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/backend/src/app/worker.clj b/backend/src/app/worker.clj index 4d5a9d728..8bafe3a8a 100644 --- a/backend/src/app/worker.clj +++ b/backend/src/app/worker.clj @@ -207,10 +207,10 @@ (db/create-array conn "uuid" ids)]] (db/exec-one! conn sql) - (l/debug :hist "dispatcher: queue tasks" - :queue queue - :tasks (count ids) - :queued res))) + (l/dbg :hist "dispatcher: queue tasks" + :queue queue + :tasks (count ids) + :queued res))) (run-batch! [rconn] (try @@ -433,12 +433,12 @@ :else (try - (l/debug :hint "worker: executing task" - :name (:name task) - :id (:id task) - :queue queue - :worker-id worker-id - :retry (:retry-num task)) + (l/dbg :hint "worker: executing task" + :name (:name task) + :id (str (:id task)) + :queue queue + :worker-id worker-id + :retry (:retry-num task)) (handle-task task) (catch InterruptedException cause (throw cause))