[sledge] Do not disable backtrace reporting in non-debug builds

Summary:
It is desirable to programmatically enable backtrace printing in debug
mode, but in other modes it should not forcably disabled. For example,
after this diff, executing
```
$ OCAMLRUNPARAM=b sledge.trc ...
```
now prints a backtrace if an unhandled exception is raised.

Reviewed By: ngorogiannis

Differential Revision: D27564883

fbshipit-source-id: 66ea5efe2
master
Josh Berdine 4 years ago committed by Facebook GitHub Bot
parent 5c3c89a964
commit d5cc42a7fd

@ -270,7 +270,7 @@ let readme () =
;; ;;
Memtrace.trace_if_requested () Memtrace.trace_if_requested ()
;; ;;
Printexc.record_backtrace Version.debug if Version.debug then Printexc.record_backtrace true
;; ;;
Stdlib.Sys.catch_break true Stdlib.Sys.catch_break true

Loading…
Cancel
Save