From cac63e9ea1e2751e760863079674cdff9f21d71c Mon Sep 17 00:00:00 2001 From: "Grisha K." Date: Thu, 25 Apr 2024 17:03:41 +0300 Subject: [PATCH] Add a log message for "notify-send" --- timefor | 4 ++-- timefor.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/timefor b/timefor index d2e745d..513c2ab 100755 --- a/timefor +++ b/timefor @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cc7fa4ddbac32a5a853cbb2a84ae12326e27adf40615db022b0b8f7da7c6779f -size 9551080 +oid sha256:41e20a0ac1a1d4630e447bb58c545fa4de90fd25510fc83e7ea9800260dca082 +size 9551288 diff --git a/timefor.go b/timefor.go index c1faac8..f78a39d 100644 --- a/timefor.go +++ b/timefor.go @@ -516,6 +516,7 @@ func Daemon( return err } if duration > intervalToShowBreakReminder && time.Since(notified) > intervalToRepeatBreakReminder { + fmt.Printf("sending notification for %s\n", formatDuration(duration)) args := []string{ "Take a break!", fmt.Sprintf("Active for %v already", formatDuration(duration)),