0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

🐛 Fix minor issues on migration code

This commit is contained in:
Andrey Antukh 2024-01-24 13:12:15 +01:00
parent 8d0afd8c96
commit 3f97b3a112
2 changed files with 9 additions and 3 deletions

View file

@ -945,6 +945,12 @@
:file-id (str (:id fdata))
:id (str (:id mobj)))
(instance? org.graalvm.polyglot.PolyglotException cause)
(l/inf :hint "skip processing media object: invalid svg found"
:team-id (str team-id)
:file-id (str (:id fdata))
:id (str (:id mobj)))
(= (:type edata) :not-found)
(l/inf :hint "skip processing media object: underlying object does not exist"
:team-id (str team-id)

View file

@ -287,7 +287,7 @@
sprocs (ps/create :permits max-procs)
cache (if (int? cache)
(cache/create :executor :same-thread
(cache/create :executor executor
:max-items cache)
nil)
migrate-team
@ -303,14 +303,14 @@
:skip-on-graphics-error? skip-on-graphic-error?)))
(when (string? label)
(report! main/system label team-id (tpoint) nil))
(report! main/system team-id label (tpoint) nil))
(catch Throwable cause
(l/wrn :hint "unexpected error on processing team (skiping)"
:team-id (str team-id)
:cause cause)
(when (string? label)
(report! main/system label team-id (tpoint) (ex-message cause))))
(report! main/system team-id label (tpoint) (ex-message cause))))
(finally
(ps/release! sjobs)))))