Skip to content

Commit

Permalink
fix(log): only log when 1 or more emails are processed
Browse files Browse the repository at this point in the history
scottmckendry committed Feb 1, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 2b22fd6 commit b3095e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -57,7 +57,9 @@ func startScheduler() error {
if err != nil {
log.Println("Error sending invoices: ", err)
}
log.Println(status)
if status != "Processed 0 emails" {
log.Println(status)
}
}),
)

0 comments on commit b3095e9

Please sign in to comment.