From adf11a891e4d558b1fd8c5f96abbe53b5f0038a0 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sun, 10 Sep 2023 22:02:19 -0700 Subject: [PATCH] disabled email --- flake.nix | 2 +- time_tracker/src/main.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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) }; }