From 523cbb9e2ff2b67b76215a6ddc51fa748e46cb39 Mon Sep 17 00:00:00 2001 From: donpat1to Date: Fri, 29 Aug 2025 11:35:43 +0200 Subject: [PATCH] added debug --- WatcherAgent/src/config.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WatcherAgent/src/config.rs b/WatcherAgent/src/config.rs index 1fe8d60..f553665 100644 --- a/WatcherAgent/src/config.rs +++ b/WatcherAgent/src/config.rs @@ -11,12 +11,15 @@ pub struct AppConfig { impl AppConfig { pub fn from_env() -> Result { // Load .env file (works in both Docker and local development) + println!("Loading .env file..."); dotenvy::dotenv().ok(); let cfg = Config::builder() .add_source(config::Environment::with_prefix("WATCHER").separator("_")) .build()?; + println!("Configuration loaded: {cfg:#?}"); + cfg.try_deserialize() } }