We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 515c8d6 commit 66466a7Copy full SHA for 66466a7
src/tracing.rs
@@ -1,8 +1,12 @@
1
+use std::io::IsTerminal as _;
2
use tracing_subscriber::{prelude::*, EnvFilter};
3
4
/// Initializes a tracing subscriber.
5
pub(crate) fn init_subscriber() -> anyhow::Result<()> {
- let fmt_layer = tracing_subscriber::fmt::layer().with_target(true);
6
+ let fmt_layer = tracing_subscriber::fmt::layer()
7
+ .with_target(true)
8
+ .with_ansi(std::io::stderr().is_terminal())
9
+ .with_writer(std::io::stderr);
10
let filter_layer = EnvFilter::try_from_default_env()
11
.or_else(|_| EnvFilter::try_new("info"))?
12
// Force disabling of r1cs log messages, otherwise the `ark-groth16` crate
0 commit comments