wala-rust

Unnamed repository; edit this file 'description' to name the repository.
Info | Log | Files | Refs | README | LICENSE

commit 398a67df4512a90d826669cc304891705d927452
parent b1303684df54bfc10444975a18b0d76fed58ecb3
Author: lash <dev@holbrook.no>
Date:   Sun, 18 Sep 2022 14:07:56 +0000

Enable run without trace feature

Diffstat:
Msrc/main.rs | 21++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -226,17 +226,20 @@ fn main() { let settings = Settings::from_args(); let base_path = settings.dir.as_path(); - #[cfg(feature = "trace")] let spool_path = base_path.join("spool"); let mut spool_ok = false; - match create_dir_all(&spool_path) { - Ok(v) => { - spool_ok = true; - }, - Err(e) => { - warn!("spool directory could not be created: {:?}", e); - }, - }; + + #[cfg(feature = "trace")] + { + match create_dir_all(&spool_path) { + Ok(v) => { + spool_ok = true; + }, + Err(e) => { + warn!("spool directory could not be created: {:?}", e); + }, + }; + } info!("Using data dir: {:?}", &base_path);