Skip to content
Browse files

[http] print the backtrace when the daemon callback raises an exception

  • Loading branch information...
1 parent 272694e commit f6e18b3ddd96dadfd657dfdcafe27c4cbba5bc2e @avsm committed Jun 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http/server.ml
View
2 lib/http/server.ml
@@ -130,7 +130,7 @@ let daemon_callback spec =
Net.Channel.flush channel (* TODO: autoflush *)
) streams
with exn -> begin
- printf "daemon_callback: exn %d: %s\n%!" conn_id (Printexc.to_string exn);
+ printf "daemon_callback: exn %d: %s %s\n%!" conn_id (Printexc.to_string exn) (Printexc.get_backtrace ());
return ()
end
in

0 comments on commit f6e18b3

Please sign in to comment.
Something went wrong with that request. Please try again.