📎 Properly log error on audit archive task fail

This commit is contained in:
Andrey Antukh 2022-03-11 15:25:06 +01:00
parent d9bd63d34f
commit f33d6610e7
2 changed files with 3 additions and 5 deletions

View file

@ -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]