mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: disable ANSI colours for the tracing_subscriber so that the logs are not polluted with escape codes (#832)
This commit is contained in:
parent
9918ceb7f4
commit
e5c543cf80
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,8 @@ impl Logs {
|
||||||
let (handle, guard) = tracing_appender::non_blocking(appender);
|
let (handle, guard) = tracing_appender::non_blocking(appender);
|
||||||
|
|
||||||
// let filter = EnvFilter::from_default_env();
|
// let filter = EnvFilter::from_default_env();
|
||||||
let subscriber = Registry::default().with(fmt::layer().pretty().with_writer(handle));
|
let subscriber =
|
||||||
|
Registry::default().with(fmt::layer().pretty().with_writer(handle).with_ansi(false));
|
||||||
|
|
||||||
tracing::subscriber::set_global_default(subscriber).expect("setting default subscriber failed");
|
tracing::subscriber::set_global_default(subscriber).expect("setting default subscriber failed");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue