mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 16:26:38 +02:00
📎 Properly log error on audit archive task fail
This commit is contained in:
parent
d9bd63d34f
commit
f33d6610e7
2 changed files with 3 additions and 5 deletions
|
@ -7,10 +7,7 @@
|
|||
(ns app.http
|
||||
(:require
|
||||
[app.common.data :as d]
|
||||
[app.common.exceptions :as ex]
|
||||
[app.common.logging :as l]
|
||||
[app.common.spec :as us]
|
||||
[app.config :as cf]
|
||||
[app.http.doc :as doc]
|
||||
[app.http.errors :as errors]
|
||||
[app.http.middleware :as middleware]
|
||||
|
|
|
@ -298,8 +298,9 @@
|
|||
(if (= (:status resp) 204)
|
||||
true
|
||||
(do
|
||||
(l/warn :hint "unable to archive events"
|
||||
:resp-status (:status resp))
|
||||
(l/error :hint "unable to archive events"
|
||||
:resp-status (:status resp)
|
||||
:resp-body (:body resp))
|
||||
false))))
|
||||
|
||||
(mark-as-archived [conn rows]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue