projects
/
stakingWatchdog.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hide smtp password when printing the configuration
[stakingWatchdog.git]
/
src
/
main.rs
diff --git
a/src/main.rs
b/src/main.rs
index
0b7c9c4
..
114b915
100644
(file)
--- a/
src/main.rs
+++ b/
src/main.rs
@@
-35,7
+35,13
@@
fn main() -> Result<()> {
let config = Config::read(FILE_CONF)?;
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;
let mut time_last_email_send = time::Instant::now() - EMAIL_RESEND_PERIOD;