From 87c1bc4bdbeb65da071ddd1a5d6fe479ff1cfbe0 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 23 Feb 2022 12:40:28 +0100 Subject: [PATCH] :bug: Fix incorrect error id reporting on mattermost webhook --- common/src/app/common/logging.cljc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/app/common/logging.cljc b/common/src/app/common/logging.cljc index b9331834c..f96c6cb04 100644 --- a/common/src/app/common/logging.cljc +++ b/common/src/app/common/logging.cljc @@ -7,6 +7,7 @@ (ns app.common.logging (:require [app.common.exceptions :as ex] + [app.common.uuid :as uuid] [clojure.pprint :refer [pprint]] [cuerdas.core :as str] [fipp.edn :as fpp] @@ -175,7 +176,7 @@ `(->> (ThreadContext/getImmutableContext) (send-off logging-agent (fn [_# cdata#] - (with-context (-> {} (into cdata#) (into ~context)) + (with-context (-> {:id (uuid/next)} (into cdata#) (into ~context)) (->> (or ~raw (build-map-message ~props)) (write-log! ~logger-sym ~level-sym ~cause))))))