Skip to content

Commit

Permalink
tracing: use envvar RUST_LOG_JSON to enable json logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed Jan 23, 2023
1 parent 477142f commit a0a4b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/telemetry-subscribers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl TelemetryConfig {
self.crash_on_panic = true
}

if env::var("ENABLE_JSON_LOGS").is_ok() {
if env::var("RUST_LOG_JSON").is_ok() {
self.json_log_output = true;
}

Expand Down

0 comments on commit a0a4b37

Please sign in to comment.