mirror of
https://github.com/penpot/penpot.git
synced 2025-06-20 23:26:59 +02:00
✨ Remove duplicate error logging on sse response
This commit is contained in:
parent
ba25ce3098
commit
bf76f328c8
1 changed files with 2 additions and 4 deletions
|
@ -62,10 +62,8 @@
|
|||
(let [result (handler)]
|
||||
(events/tap :end result))
|
||||
(catch Throwable cause
|
||||
(events/tap :error (errors/handle' cause request))
|
||||
(when-not (ex/instance? java.io.EOFException cause)
|
||||
(binding [l/*context* (errors/request->context request)]
|
||||
(l/err :hint "unexpected error on processing sse response" :cause cause))))
|
||||
(let [result (errors/handle' cause request)]
|
||||
(events/tap :error result)))
|
||||
(finally
|
||||
(sp/close! events/*channel*)
|
||||
(px/await! listener)))))))}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue