Add debug output for paths

This commit is contained in:
Robert Ignat 2017-06-25 16:58:25 +02:00 committed by Matthias Beyer
parent 94928c33ca
commit 73d3cf687c

View file

@ -71,6 +71,8 @@ impl<'a> Runtime<'a> {
let configpath = matches.value_of(Runtime::arg_config_name()) let configpath = matches.value_of(Runtime::arg_config_name())
.map_or_else(|| rtp.clone(), PathBuf::from); .map_or_else(|| rtp.clone(), PathBuf::from);
debug!("Config path = {:?}", configpath);
let config = match Configuration::new(&configpath) { let config = match Configuration::new(&configpath) {
Err(e) => if e.err_type() != ConfigErrorKind::NoConfigFileFound { Err(e) => if e.err_type() != ConfigErrorKind::NoConfigFileFound {
return Err(RuntimeErrorKind::Instantiate.into_error_with_cause(Box::new(e))); return Err(RuntimeErrorKind::Instantiate.into_error_with_cause(Box::new(e)));
@ -140,6 +142,9 @@ impl<'a> Runtime<'a> {
spath spath
}, PathBuf::from); }, PathBuf::from);
debug!("RTP path = {:?}", rtp);
debug!("Store path = {:?}", storepath);
let store_config = match config { let store_config = match config {
Some(ref c) => c.store_config().cloned(), Some(ref c) => c.store_config().cloned(),
None => None, None => None,