Skip to content

Commit

Permalink
http-lib: add backtrace to logs on connection without response
Browse files Browse the repository at this point in the history
Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
  • Loading branch information
psafont committed Oct 1, 2024
1 parent e90a98e commit eb8d973
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ocaml/libs/http-lib/http_client.ml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ let response_of_fd ?(use_fastpath = false) fd =
| Unix.Unix_error (_, _, _) as e ->
raise e
| e ->
Backtrace.is_important e ;
let bt = Backtrace.get e in
Debug.log_backtrace e bt ;
D.debug "%s: returning no response because of the exception: %s"
__FUNCTION__ (Printexc.to_string e) ;
None
Expand Down

0 comments on commit eb8d973

Please sign in to comment.