Skip to content

Commit eb8d973

Browse files
committed
http-lib: add backtrace to logs on connection without response
Signed-off-by: Pau Ruiz Safont <[email protected]>
1 parent e90a98e commit eb8d973

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ocaml/libs/http-lib/http_client.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ let response_of_fd ?(use_fastpath = false) fd =
188188
| Unix.Unix_error (_, _, _) as e ->
189189
raise e
190190
| e ->
191+
Backtrace.is_important e ;
192+
let bt = Backtrace.get e in
193+
Debug.log_backtrace e bt ;
191194
D.debug "%s: returning no response because of the exception: %s"
192195
__FUNCTION__ (Printexc.to_string e) ;
193196
None

0 commit comments

Comments
 (0)