disabled email
This commit is contained in:
parent
8c4587544c
commit
adf11a891e
2 changed files with 4 additions and 4 deletions
|
@ -164,7 +164,7 @@ rust-project TODO: write shell script for automatically updating `cargoHash`
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${cfg.package}/bin/time_tracker -d --config-file ${builtins.toString cfg.config_path}
|
${cfg.package}/bin/time_tracker --config-file ${builtins.toString cfg.config_path}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -195,8 +195,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
|
|
||||||
if do_email_summary {
|
if do_email_summary {
|
||||||
debug!("Send email selected");
|
debug!("Send email selected");
|
||||||
reset_email_checkbox(&cfg);
|
//reset_email_checkbox(&cfg);
|
||||||
send_email_summary(&cfg, body_content);
|
//send_email_summary(&cfg, body_content);
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -381,7 +381,7 @@ fn send_email_summary(config: &Config, body_content: Vec<String>) {
|
||||||
|
|
||||||
match mailer.send(&email) {
|
match mailer.send(&email) {
|
||||||
Ok(val) => debug!("email sent: {:?}", val),
|
Ok(val) => debug!("email sent: {:?}", val),
|
||||||
Err(e) => debug!("Couldn't send email {}", e)
|
Err(e) => error!("Couldn't send email {}", e)
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue