mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
💄 Add cosmetic improvements on binfile rpc ns logging
This commit is contained in:
parent
a89dcb9e86
commit
344da75088
1 changed files with 8 additions and 5 deletions
|
@ -840,7 +840,7 @@
|
||||||
:code :inconsistent-penpot-file
|
:code :inconsistent-penpot-file
|
||||||
:hint "the penpot file seems corrupt, found unexpected uuid (storage-object-id)"))
|
:hint "the penpot file seems corrupt, found unexpected uuid (storage-object-id)"))
|
||||||
|
|
||||||
(l/dbg :hint "readed storage object" :id id ::l/sync? true)
|
(l/dbg :hint "readed storage object" :id (str id) ::l/sync? true)
|
||||||
|
|
||||||
(let [[size resource] (read-stream! input)
|
(let [[size resource] (read-stream! input)
|
||||||
hash (sto/calculate-hash resource)
|
hash (sto/calculate-hash resource)
|
||||||
|
@ -854,18 +854,21 @@
|
||||||
|
|
||||||
sobject (sto/put-object! storage params)]
|
sobject (sto/put-object! storage params)]
|
||||||
|
|
||||||
(l/dbg :hint "persisted storage object" :id id :new-id (:id sobject) ::l/sync? true)
|
(l/dbg :hint "persisted storage object"
|
||||||
|
:id (str id)
|
||||||
|
:new-id (str (:id sobject))
|
||||||
|
::l/sync? true)
|
||||||
(vswap! *state* update :index assoc id (:id sobject)))))
|
(vswap! *state* update :index assoc id (:id sobject)))))
|
||||||
|
|
||||||
(doseq [item (:media @*state*)]
|
(doseq [item (:media @*state*)]
|
||||||
(l/dbg :hint "inserting file media object"
|
(l/dbg :hint "inserting file media object"
|
||||||
:id (:id item)
|
:id (str (:id item))
|
||||||
:file-id (:file-id item)
|
:file-id (str (:file-id item))
|
||||||
::l/sync? true)
|
::l/sync? true)
|
||||||
|
|
||||||
(let [file-id (lookup-index (:file-id item))]
|
(let [file-id (lookup-index (:file-id item))]
|
||||||
(if (= file-id (:file-id item))
|
(if (= file-id (:file-id item))
|
||||||
(l/warn :hint "ignoring file media object" :file-id (:file-id item) ::l/sync? true)
|
(l/warn :hint "ignoring file media object" :file-id (str (:file-id item)) ::l/sync? true)
|
||||||
(db/insert! conn :file-media-object
|
(db/insert! conn :file-media-object
|
||||||
(-> item
|
(-> item
|
||||||
(assoc :file-id file-id)
|
(assoc :file-id file-id)
|
||||||
|
|
Loading…
Reference in a new issue