log: always colorful output to stderr

This commit is contained in:
mokurin000
2025-08-02 00:13:31 +08:00
parent dbe0890a4a
commit 23d8345b0e

View File

@@ -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(())