diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 8b959a6..a6f1d9d 100644 --- a/src/main.rs +++ b/src/main.rs | |||
| @@ -28,7 +28,14 @@ async fn main() -> Result<()> { | |||
| 28 | // Load configuration (priority: CLI flags > env vars > .env file > defaults) | 28 | // Load configuration (priority: CLI flags > env vars > .env file > defaults) |
| 29 | let config = Config::load()?; | 29 | let config = Config::load()?; |
| 30 | 30 | ||
| 31 | info!("Configuration loaded: {}", config.bind_address); | 31 | // Validate configuration and fail fast on fatal errors |
| 32 | // Recoverable issues (e.g., malformed whitelist entries) are logged as warnings | ||
| 33 | config.validate()?; | ||
| 34 | |||
| 35 | info!( | ||
| 36 | "Configuration loaded and validated: {}", | ||
| 37 | config.bind_address | ||
| 38 | ); | ||
| 32 | info!("Domain: {}", config.domain); | 39 | info!("Domain: {}", config.domain); |
| 33 | info!("Relay name: {}", config.relay_name()); | 40 | info!("Relay name: {}", config.relay_name()); |
| 34 | info!("Git data directory: {}", config.effective_git_data_path()); | 41 | info!("Git data directory: {}", config.effective_git_data_path()); |