Skip to content

Commit 5c491a4

Browse files
committed
fix http server backtrace logging
show actual exception location in backtrace logged similar to: #87
1 parent ebc1b4f commit 5c491a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/http_rpc_server.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ function http_handler(apis::Channel{APIInvoker{T,F}}, preproc::Function, req::HT
197197
end
198198
end
199199
catch e
200+
@error("Exception in handler: ", exception=(e, catch_backtrace()))
200201
res = HTTP.Response(500)
201-
@error("Exception in handler: ", exception=(e, backtrace()))
202202
end
203203
@debug("response", res)
204204
return res

0 commit comments

Comments
 (0)