Duplicate logging to stdout (#8495)

* Duplicate logging to stdout

* Update client/tracing/src/logging/event_format.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Arkadiy Paronyan
2021-03-31 13:46:14 +03:00
committed by GitHub
parent 2ed268286e
commit d294e51214
2 changed files with 16 additions and 1 deletions
@@ -167,6 +167,7 @@ where
display_level: !simple,
display_thread_name: !simple,
enable_color,
dup_to_stdout: !atty::is(atty::Stream::Stderr) && atty::is(atty::Stream::Stdout),
};
let builder = FmtSubscriber::builder().with_env_filter(env_filter);