log: always colorful output to stderr
This commit is contained in:
@@ -52,7 +52,7 @@ async fn main() -> Result<(), Box<dyn snafu::Error>> {
|
|||||||
}));
|
}));
|
||||||
let sink = StdStreamSink::builder()
|
let sink = StdStreamSink::builder()
|
||||||
.stderr()
|
.stderr()
|
||||||
.style_mode(StyleMode::Auto)
|
.style_mode(StyleMode::Always)
|
||||||
.build()?;
|
.build()?;
|
||||||
*log.sinks_mut() = vec![Arc::new(sink)];
|
*log.sinks_mut() = vec![Arc::new(sink)];
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user