From c062d834a16e6d38d32d6f676447a86d7a7e0ba4 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Mon, 30 Mar 2026 15:33:24 +0200 Subject: [PATCH] fix: downgrade dotenv missing file from FAILED to info message Non-fatal in Docker where env vars come from container config. Co-Authored-By: Claude Opus 4.6 (1M context) --- compliance-agent/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compliance-agent/src/main.rs b/compliance-agent/src/main.rs index 7f36343..64e862f 100644 --- a/compliance-agent/src/main.rs +++ b/compliance-agent/src/main.rs @@ -4,7 +4,7 @@ use compliance_agent::{agent, api, config, database, scheduler, ssh, webhooks}; async fn main() -> Result<(), Box> { match dotenvy::dotenv() { Ok(path) => eprintln!("[dotenv] Loaded from: {}", path.display()), - Err(e) => eprintln!("[dotenv] FAILED: {e}"), + Err(_) => eprintln!("[dotenv] No .env file found, using environment variables"), } let _telemetry_guard = compliance_core::telemetry::init_telemetry("compliance-agent");