Improve logging on config loading failures.

When we fail to load a config directory we are logging that
it wasn't a directory. With this change also log which directory
we were expecting to load that isn't one so we can fix it...
This commit is contained in:
Jeremy Whiting 2024-06-12 16:10:55 -06:00
parent 334faffaa8
commit b51569b657

View file

@ -114,7 +114,8 @@ async fn read_config_directory<P: AsRef<Path> + Sync + Send>(
);
return Ok(builder);
}
error!("Error reading config fragment directory: {e}");
error!("Error reading config fragment directory {}: {e}",
path.as_ref().to_string_lossy());
return Err(e.into());
}
};