mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
bdb407ca82
commit
b033105fb6
1 changed files with 2 additions and 2 deletions
|
|
@ -22,10 +22,10 @@ impl Logs {
|
|||
.with_context(|| format!("failed to create state directory: {state_dir:?}"))?;
|
||||
|
||||
let log_path = state_dir.join("yazi.log");
|
||||
let file = File::create(&log_path)
|
||||
let log_file = File::create(&log_path)
|
||||
.with_context(|| format!("failed to create log file: {log_path:?}"))?;
|
||||
|
||||
let (non_blocking, guard) = tracing_appender::non_blocking(file);
|
||||
let (non_blocking, guard) = tracing_appender::non_blocking(log_file);
|
||||
tracing_subscriber::fmt()
|
||||
.pretty()
|
||||
.with_env_filter(EnvFilter::new(&level))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue