mirror of
https://github.com/penpot/penpot.git
synced 2025-07-18 07:47:16 +02:00
Merge pull request #3585 from penpot/niwinz-staging-storage-gc-deleted
✨ Add minor improvements to logging
This commit is contained in:
commit
56a0d522dc
3 changed files with 19 additions and 19 deletions
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
<Logger name="app.rpc.commands.binfile" level="debug" />
|
<Logger name="app.rpc.commands.binfile" level="debug" />
|
||||||
<Logger name="app.storage.tmp" level="debug" />
|
<Logger name="app.storage.tmp" level="debug" />
|
||||||
<Logger name="app.worker" level="info" />
|
<Logger name="app.worker" level="trace" />
|
||||||
<Logger name="app.msgbus" level="info" />
|
<Logger name="app.msgbus" level="info" />
|
||||||
<Logger name="app.http.websocket" level="info" />
|
<Logger name="app.http.websocket" level="info" />
|
||||||
<Logger name="app.util.websocket" level="info" />
|
<Logger name="app.util.websocket" level="info" />
|
||||||
|
|
|
@ -773,7 +773,7 @@
|
||||||
(defn- lookup-index
|
(defn- lookup-index
|
||||||
[id]
|
[id]
|
||||||
(let [val (get-in @*state* [:index id])]
|
(let [val (get-in @*state* [:index id])]
|
||||||
(l/debug :fn "lookup-index" :id id :val val ::l/sync? true)
|
(l/trc :fn "lookup-index" :id id :val val ::l/sync? true)
|
||||||
(when (and (not (::ignore-index-errors? *options*)) (not val))
|
(when (and (not (::ignore-index-errors? *options*)) (not val))
|
||||||
(ex/raise :type :validation
|
(ex/raise :type :validation
|
||||||
:code :incomplete-index
|
:code :incomplete-index
|
||||||
|
|
|
@ -207,7 +207,7 @@
|
||||||
(db/create-array conn "uuid" ids)]]
|
(db/create-array conn "uuid" ids)]]
|
||||||
|
|
||||||
(db/exec-one! conn sql)
|
(db/exec-one! conn sql)
|
||||||
(l/debug :hist "dispatcher: queue tasks"
|
(l/dbg :hist "dispatcher: queue tasks"
|
||||||
:queue queue
|
:queue queue
|
||||||
:tasks (count ids)
|
:tasks (count ids)
|
||||||
:queued res)))
|
:queued res)))
|
||||||
|
@ -433,9 +433,9 @@
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(try
|
(try
|
||||||
(l/debug :hint "worker: executing task"
|
(l/dbg :hint "worker: executing task"
|
||||||
:name (:name task)
|
:name (:name task)
|
||||||
:id (:id task)
|
:id (str (:id task))
|
||||||
:queue queue
|
:queue queue
|
||||||
:worker-id worker-id
|
:worker-id worker-id
|
||||||
:retry (:retry-num task))
|
:retry (:retry-num task))
|
||||||
|
@ -678,7 +678,7 @@
|
||||||
(-> (db/exec-one! conn [sql:remove-not-started-tasks task queue label])
|
(-> (db/exec-one! conn [sql:remove-not-started-tasks task queue label])
|
||||||
:next.jdbc/update-count))]
|
:next.jdbc/update-count))]
|
||||||
|
|
||||||
(l/debug :hint "submit task"
|
(l/trc :hint "submit task"
|
||||||
:name task
|
:name task
|
||||||
:queue queue
|
:queue queue
|
||||||
:label label
|
:label label
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue