diff --git a/flake.nix b/flake.nix index 07818f5..6be157d 100644 --- a/flake.nix +++ b/flake.nix @@ -164,7 +164,7 @@ rust-project TODO: write shell script for automatically updating `cargoHash` serviceConfig = { Type = "oneshot"; 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} ''; }; }; diff --git a/time_tracker/src/main.rs b/time_tracker/src/main.rs index 6feb113..f4d2be1 100644 --- a/time_tracker/src/main.rs +++ b/time_tracker/src/main.rs @@ -195,8 +195,8 @@ fn main() -> Result<(), Box> { if do_email_summary { debug!("Send email selected"); - reset_email_checkbox(&cfg); - send_email_summary(&cfg, body_content); + //reset_email_checkbox(&cfg); + //send_email_summary(&cfg, body_content); } Ok(()) @@ -381,7 +381,7 @@ fn send_email_summary(config: &Config, body_content: Vec) { match mailer.send(&email) { Ok(val) => debug!("email sent: {:?}", val), - Err(e) => debug!("Couldn't send email {}", e) + Err(e) => error!("Couldn't send email {}", e) }; }