From b51569b657fd2a16a2376791ec78874383dd12d6 Mon Sep 17 00:00:00 2001 From: Jeremy Whiting Date: Wed, 12 Jun 2024 16:10:55 -0600 Subject: [PATCH] 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... --- src/daemon/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/daemon/config.rs b/src/daemon/config.rs index b614651..92ceeb2 100644 --- a/src/daemon/config.rs +++ b/src/daemon/config.rs @@ -114,7 +114,8 @@ async fn read_config_directory + 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()); } };