mirror of
https://github.com/penpot/penpot.git
synced 2026-06-09 08:52:05 +00:00
🔧 Fix log level of migration exceptions (#9986)
This commit is contained in:
parent
d5fe5f82f3
commit
e2545915b8
@ -57,9 +57,9 @@
|
||||
{:result :update :updated-shape (dissoc shape :component-root)})
|
||||
{:result :keep})))
|
||||
(catch #?(:clj Throwable :cljs :default) e
|
||||
(log/error :msg "Failed to normalize :component-root on shapes"
|
||||
:file-id (:id file-data)
|
||||
:cause e)
|
||||
(log/warn :msg "Failed to normalize :component-root on shapes"
|
||||
:file-id (:id file-data)
|
||||
:cause e)
|
||||
file-data)))
|
||||
|
||||
(defn fix-missing-swap-slots
|
||||
@ -89,9 +89,9 @@
|
||||
{:result :keep}))
|
||||
{:result :keep})))
|
||||
(catch #?(:clj Throwable :cljs :default) e
|
||||
(log/error :msg "Failed to fix missing swap slots on shapes"
|
||||
:file-id (:id file-data)
|
||||
:cause e)
|
||||
(log/warn :msg "Failed to fix missing swap slots on shapes"
|
||||
:file-id (:id file-data)
|
||||
:cause e)
|
||||
file-data)))
|
||||
|
||||
(defn sync-component-id-with-ref-shape
|
||||
@ -136,9 +136,9 @@
|
||||
{:result :keep}))
|
||||
{:result :keep})))
|
||||
(catch #?(:clj Throwable :cljs :default) e
|
||||
(log/error :msg "Failed to sync component id and file with ref shape"
|
||||
:file-id (:id file-data)
|
||||
:cause e)
|
||||
(log/warn :msg "Failed to sync component id and file with ref shape"
|
||||
:file-id (:id file-data)
|
||||
:cause e)
|
||||
file-data)))]
|
||||
;; If a copy inside a main is updated, we need to repeat the process for the change to be
|
||||
;; propagated to all copies.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user