Don't log with colors when we are writing to a tty (#7525)
* Don't log with colors when we are writing to a tty This fixes a regression that was introduced by the switch to tracing. Before we killed all colors before writing to a tty, this pr brings the behaviour back. * Remove accidentally added crate * Review feedback * More feedback * Update client/cli/src/logging.rs Co-authored-by:André Silva <123550+andresilva@users.noreply.github.com> * Update client/cli/src/logging.rs Co-authored-by:
André Silva <123550+andresilva@users.noreply.github.com> Co-authored-by:
André Silva <123550+andresilva@users.noreply.github.com>
Showing
- substrate/Cargo.lock 5 additions, 4 deletionssubstrate/Cargo.lock
- substrate/client/cli/Cargo.toml 2 additions, 1 deletionsubstrate/client/cli/Cargo.toml
- substrate/client/cli/src/lib.rs 38 additions, 8 deletionssubstrate/client/cli/src/lib.rs
- substrate/client/cli/src/logging.rs 54 additions, 5 deletionssubstrate/client/cli/src/logging.rs
- substrate/client/informant/src/lib.rs 3 additions, 1 deletionsubstrate/client/informant/src/lib.rs
Please register or sign in to comment