Remove duplicate error logging on sse response

This commit is contained in:
Andrey Antukh 2025-05-15 08:56:30 +02:00
parent ba25ce3098
commit bf76f328c8

View file

@ -62,10 +62,8 @@
(let [result (handler)] (let [result (handler)]
(events/tap :end result)) (events/tap :end result))
(catch Throwable cause (catch Throwable cause
(events/tap :error (errors/handle' cause request)) (let [result (errors/handle' cause request)]
(when-not (ex/instance? java.io.EOFException cause) (events/tap :error result)))
(binding [l/*context* (errors/request->context request)]
(l/err :hint "unexpected error on processing sse response" :cause cause))))
(finally (finally
(sp/close! events/*channel*) (sp/close! events/*channel*)
(px/await! listener)))))))})) (px/await! listener)))))))}))