Skip to content

Commit

Permalink
Add more verbose logging around config/data/cache dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Feb 5, 2024
1 parent d91b633 commit 48fd486
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![feature(result_option_inspect)]

use std::collections::BTreeSet;
use std::fs::File;
use std::io::BufWriter;
Expand Down Expand Up @@ -111,8 +113,10 @@ fn main() -> Result<()> {
let dirs = args
.appdata
.as_ref()
.inspect(|p| debug!("args.app_data = `{:?}`", p))
.map(Dirs::from_path)
.unwrap_or_else(Dirs::default_xdg)?;
.unwrap_or_else(Dirs::default_xdg)
.inspect(|d| debug!("dirs = {:?}", d))?;

std::env::set_var("RUST_BACKTRACE", "1");
let _guard = setup_logging(&dirs)?;
Expand Down

0 comments on commit 48fd486

Please sign in to comment.