summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2021-09-04 14:52:12 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2021-09-04 14:52:12 +0100
commit385211d9104dd7bbd7431f33df90372ac6f3cd20 (patch)
tree25274bac2b3b3315185e45416efb05d9b6b702f5 /src
parentf6137e18d219fd27becd908a2f47444a9adc55e0 (diff)
downloadsubplot-385211d9104dd7bbd7431f33df90372ac6f3cd20.tar.gz
subplot: Trace without ANSI to file, and always trace to console if not otherwise set
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'src')
-rw-r--r--src/bin/subplot.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/subplot.rs b/src/bin/subplot.rs
index 28dcd74..29ed25e 100644
--- a/src/bin/subplot.rs
+++ b/src/bin/subplot.rs
@@ -453,7 +453,7 @@ fn main() {
}
};
match std::env::var("SUBPLOT_TRACE_LOG").ok().as_deref() {
- Some("") | Some("-") => {
+ None | Some("") | Some("-") => {
let subscriber = tracing_subscriber::fmt()
.with_env_filter(filter)
.pretty()
@@ -473,9 +473,9 @@ fn main() {
.with_writer(non_blocking)
.with_env_filter(filter)
.pretty()
+ .with_ansi(false)
.finish();
tracing::subscriber::with_default(subscriber, real_main);
}
- None => real_main(),
}
}