mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-07 18:37:56 -05:00
feat tef: write to trace.json if TRACE is either 1 or true
This commit is contained in:
parent
fc5b243df5
commit
b467678040
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue