mirror of
https://github.com/penpot/penpot.git
synced 2025-07-30 23:18:26 +02:00
🐛 Fix error reporting hook.
This commit is contained in:
parent
67776c46d6
commit
220ab22115
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,8 @@
|
||||||
(when uri
|
(when uri
|
||||||
(l/info :msg "initializing mattermost error reporter" :uri uri)
|
(l/info :msg "initializing mattermost error reporter" :uri uri)
|
||||||
(let [output (a/chan (a/sliding-buffer 128)
|
(let [output (a/chan (a/sliding-buffer 128)
|
||||||
(filter #(= (:level %) "error")))]
|
(filter (fn [event]
|
||||||
|
(= (:logger/level event) "error"))))]
|
||||||
(receiver :sub output)
|
(receiver :sub output)
|
||||||
(a/go-loop []
|
(a/go-loop []
|
||||||
(let [msg (a/<! output)]
|
(let [msg (a/<! output)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue