Skip to content

Commit

Permalink
chore(notifications): improve log output
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbitfly committed Oct 18, 2024
1 parent f213e94 commit b1fd74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkg/commons/mail/mail.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func SendMailRateLimited(content types.TransitEmailContent) error {
}
timeLeft := time.Until(time.Now().Add(utils.Day).Truncate(utils.Day))

log.Infof("User %d has sent %d emails today, time left is %v", content.UserId, count, timeLeft)
log.Debugf("user %d has sent %d of %d emails today, time left is %v", content.UserId, count, maxEmailsPerDay, timeLeft)
if count > maxEmailsPerDay {
return &types.RateLimitError{TimeLeft: timeLeft}
} else if count == maxEmailsPerDay {
Expand Down

0 comments on commit b1fd74e

Please sign in to comment.