mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
remove ansi color escape from log file
This commit is contained in:
parent
e6fccf9d17
commit
7fe9b6e2f1
1 changed files with 2 additions and 1 deletions
|
|
@ -11,7 +11,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_ansi(false).with_writer(handle));
|
||||
|
||||
tracing::subscriber::set_global_default(subscriber)
|
||||
.context("setting default subscriber failed")?;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue