From f33d6610e7e2a02de57e49fbacfdcd1a715e1c9f Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 11 Mar 2022 15:25:06 +0100 Subject: [PATCH] :paperclip: Properly log error on audit archive task fail --- backend/src/app/http.clj | 3 --- backend/src/app/loggers/audit.clj | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/backend/src/app/http.clj b/backend/src/app/http.clj index 15b9c2dcf..010bc941f 100644 --- a/backend/src/app/http.clj +++ b/backend/src/app/http.clj @@ -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] diff --git a/backend/src/app/loggers/audit.clj b/backend/src/app/loggers/audit.clj index 0092d4eb0..952c4d640 100644 --- a/backend/src/app/loggers/audit.clj +++ b/backend/src/app/loggers/audit.clj @@ -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]