Skip to content

Commit

Permalink
fix(pcli): only colorize logs if tty
Browse files Browse the repository at this point in the history
Same as the change we made to pd a while back. Should help with making
test run output more readable.
  • Loading branch information
conorsch committed Feb 9, 2024
1 parent 7372373 commit f1754bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bin/pcli/src/opt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub struct Opt {
impl Opt {
pub fn init_tracing(&mut self) {
tracing_subscriber::fmt()
.with_ansi(atty::is(atty::Stream::Stdout))
.with_env_filter(
EnvFilter::from_default_env()
// Without explicitly disabling the `r1cs` target, the ZK proof implementations
Expand Down

0 comments on commit f1754bf

Please sign in to comment.