0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

Add minor improvements for fdata logging

This commit is contained in:
Andrey Antukh 2024-03-22 12:58:50 +01:00
parent bd9874cf28
commit 7e803eeca8
3 changed files with 6 additions and 4 deletions

View file

@ -62,6 +62,12 @@
{:id id :file-id file-id}
{::sql/columns [:content]
::db/check-deleted false})]
(l/trc :hint "load pointer"
:file-id (str file-id)
:id (str id)
:found (some? content))
(when-not content
(ex/raise :type :internal
:code :fragment-not-found

View file

@ -37,7 +37,6 @@
(:require
[app.common.fressian :as fres]
[app.common.logging :as l]
[app.common.transit :as t]
[app.common.uuid :as uuid]
[app.util.time :as dt]
@ -78,8 +77,6 @@
IPointerMap
(load! [_]
(l/trace :hint "pointer-map:load" :id (str id))
(when-not *load-fn*
(throw (UnsupportedOperationException. "load is not supported when *load-fn* is not bind")))

View file

@ -683,7 +683,6 @@
deleted (when dedupe
(-> (db/exec-one! conn [sql:remove-not-started-tasks task queue label])
:next.jdbc/update-count))]
(l/trc :hint "submit task"
:name task
:queue queue