Commit 3d75d77 1 parent 515c8d6 commit 3d75d77 Copy full SHA for 3d75d77
File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ impl EventHandler for Handler {
265
265
Ok ( m) => m,
266
266
Err ( e) => {
267
267
// We can't return an error, but we also can't proceed, so log the error
268
- // and bare -return to bail out.
268
+ // and early -return to bail out.
269
269
tracing:: error!( %e, "failed to get message info for message" ) ;
270
270
return ;
271
271
}
Original file line number Diff line number Diff line change
1
+ use std:: io:: IsTerminal as _;
1
2
use tracing_subscriber:: { prelude:: * , EnvFilter } ;
2
3
3
4
/// Initializes a tracing subscriber.
4
5
pub ( crate ) fn init_subscriber ( ) -> anyhow:: Result < ( ) > {
5
- 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) ;
6
10
let filter_layer = EnvFilter :: try_from_default_env ( )
7
11
. or_else ( |_| EnvFilter :: try_new ( "info" ) ) ?
8
12
// Force disabling of r1cs log messages, otherwise the `ark-groth16` crate
You can’t perform that action at this time.
0 commit comments