Hide smtp password when printing the configuration
[stakingWatchdog.git] / src / main.rs
index 0b7c9c4..114b915 100644 (file)
@@ -35,7 +35,13 @@ fn main() -> Result<()> {
 
     let config = Config::read(FILE_CONF)?;
 
-    println!("Configuration: {:?}", config);
+    println!(
+        "Configuration: {:?}",
+        Config {
+            smtp_password: "*****".to_string(),
+            ..config.clone()
+        }
+    );
 
     let mut time_last_email_send = time::Instant::now() - EMAIL_RESEND_PERIOD;