From 344da7508832022cf169796174b676283a295104 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 20 Nov 2023 10:39:53 +0100 Subject: [PATCH] :lipstick: Add cosmetic improvements on binfile rpc ns logging --- backend/src/app/rpc/commands/binfile.clj | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/backend/src/app/rpc/commands/binfile.clj b/backend/src/app/rpc/commands/binfile.clj index 571a680d7c..76df7eafee 100644 --- a/backend/src/app/rpc/commands/binfile.clj +++ b/backend/src/app/rpc/commands/binfile.clj @@ -840,7 +840,7 @@ :code :inconsistent-penpot-file :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) hash (sto/calculate-hash resource) @@ -854,18 +854,21 @@ 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))))) (doseq [item (:media @*state*)] (l/dbg :hint "inserting file media object" - :id (:id item) - :file-id (:file-id item) + :id (str (:id item)) + :file-id (str (:file-id item)) ::l/sync? true) (let [file-id (lookup-index (: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 (-> item (assoc :file-id file-id)