feat tef: write to trace.json if TRACE is either 1 or true

This commit is contained in:
Simon Cruanes 2023-08-30 08:31:10 -04:00
parent fc5b243df5
commit b467678040
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -418,7 +418,7 @@ let setup ?(out = `Env) () =
| `File path -> Trace_core.setup_collector @@ collector ~out:(`File path) ()
| `Env ->
(match Sys.getenv_opt "TRACE" with
| Some "1" ->
| Some ("1" | "true") ->
let path = "trace.json" in
let c = collector ~out:(`File path) () in
Trace_core.setup_collector c