Add debug output for Configuration::new()

This commit is contained in:
Matthias Beyer 2015-12-01 18:32:00 +01:00
parent 56cd6dc4ae
commit 5f4718a2e5
1 changed files with 9 additions and 1 deletions

View File

@ -40,11 +40,19 @@ impl Configuration {
} }
} }
let runtimepath = rtp.unwrap_or(String::from("/tmp/"));
debug!("Building configuration");
debug!(" - verbose : {}", verbose);
debug!(" - debugging : {}", debugging);
debug!(" - store sub : {}", store_sub);
debug!(" - runtimepath: {}", runtimepath);
Configuration { Configuration {
verbose: verbose, verbose: verbose,
debugging: debugging, debugging: debugging,
store_sub: store_sub, store_sub: store_sub,
rtp: rtp.unwrap_or(String::from("/tmp/")), rtp: runtimepath,
} }
} }