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() } }