0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00

🐛 Fix incorrect error id reporting on mattermost webhook

This commit is contained in:
Andrey Antukh 2022-02-23 12:40:28 +01:00
parent e15f5bb432
commit 87c1bc4bdb

View file

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