mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 11:26:12 +02:00
✨ Add minor improvements to error reporting
This commit is contained in:
parent
01a887c68c
commit
bb8c8f5a0c
1 changed files with 7 additions and 3 deletions
|
@ -18,6 +18,7 @@
|
||||||
[app.config :as cf]
|
[app.config :as cf]
|
||||||
[app.db :as db]
|
[app.db :as db]
|
||||||
[app.features.fdata :refer [enable-pointer-map enable-objects-map]]
|
[app.features.fdata :refer [enable-pointer-map enable-objects-map]]
|
||||||
|
[app.http.errors :as errors]
|
||||||
[app.loggers.audit :as audit]
|
[app.loggers.audit :as audit]
|
||||||
[app.loggers.webhooks :as webhooks]
|
[app.loggers.webhooks :as webhooks]
|
||||||
[app.metrics :as mtx]
|
[app.metrics :as mtx]
|
||||||
|
@ -172,9 +173,12 @@
|
||||||
{:features features}
|
{:features features}
|
||||||
{:id (:id team)})))
|
{:id (:id team)})))
|
||||||
|
|
||||||
|
(binding [l/*context* (some-> (meta params)
|
||||||
|
(get :app.http/request)
|
||||||
|
(errors/request->context))]
|
||||||
(-> (update-file cfg params)
|
(-> (update-file cfg params)
|
||||||
(rph/with-defer #(let [elapsed (tpoint)]
|
(rph/with-defer #(let [elapsed (tpoint)]
|
||||||
(l/trace :hint "update-file" :time (dt/format-duration elapsed)))))))))
|
(l/trace :hint "update-file" :time (dt/format-duration elapsed))))))))))
|
||||||
|
|
||||||
(defn update-file
|
(defn update-file
|
||||||
[{:keys [::db/conn ::mtx/metrics] :as cfg}
|
[{:keys [::db/conn ::mtx/metrics] :as cfg}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue