mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01: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 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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue