mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 12:06:12 +02:00
✨ Add the logger info to mattermost reporter
This commit is contained in:
parent
01a64dda2e
commit
036392af6e
1 changed files with 7 additions and 3 deletions
|
@ -23,17 +23,20 @@
|
||||||
|
|
||||||
(defn- send-mattermost-notification!
|
(defn- send-mattermost-notification!
|
||||||
[cfg {:keys [id public-uri] :as report}]
|
[cfg {:keys [id public-uri] :as report}]
|
||||||
|
|
||||||
|
|
||||||
(let [text (str "Exception: " public-uri "/dbg/error/" id " "
|
(let [text (str "Exception: " public-uri "/dbg/error/" id " "
|
||||||
(when-let [pid (:profile-id report)]
|
(when-let [pid (:profile-id report)]
|
||||||
(str "(pid: #uuid-" pid ")"))
|
(str "(pid: #uuid-" pid ")"))
|
||||||
"\n"
|
"\n"
|
||||||
"```\n"
|
"- host: #" (:host report) "\n"
|
||||||
"- host: `" (:host report) "`\n"
|
"- tenant: #" (:tenant report) "\n"
|
||||||
"- tenant: `" (:tenant report) "`\n"
|
"- logger: #" (:logger report) "\n"
|
||||||
"- request-path: `" (:request-path report) "`\n"
|
"- request-path: `" (:request-path report) "`\n"
|
||||||
"- frontend-version: `" (:frontend-version report) "`\n"
|
"- frontend-version: `" (:frontend-version report) "`\n"
|
||||||
"- backend-version: `" (:backend-version report) "`\n"
|
"- backend-version: `" (:backend-version report) "`\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
"```\n"
|
||||||
"Trace:\n"
|
"Trace:\n"
|
||||||
(:trace report)
|
(:trace report)
|
||||||
"```")
|
"```")
|
||||||
|
@ -60,6 +63,7 @@
|
||||||
:frontend-version (:version/frontend context)
|
:frontend-version (:version/frontend context)
|
||||||
:profile-id (:request/profile-id context)
|
:profile-id (:request/profile-id context)
|
||||||
:request-path (:request/path context)
|
:request-path (:request/path context)
|
||||||
|
:logger (::l/logger record)
|
||||||
:trace (ex/format-throwable cause :detail? false :header? false)})
|
:trace (ex/format-throwable cause :detail? false :header? false)})
|
||||||
|
|
||||||
(defn handle-event
|
(defn handle-event
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue