Skip to content

Commit

Permalink
timer.go: logWantedFor('blocked') for 'ticker3hours blocked but not o…
Browse files Browse the repository at this point in the history
…utdated'
  • Loading branch information
mehrvarz committed Oct 20, 2022
1 parent c14c736 commit 11c8914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timer.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func ticker3hours() {
// TODO we need to be able to switch this log off
if logWantedFor("timer") {
secsToLive := blockedForDays * 24*60*60 - sinceDeletedInSecs
if logWantedFor("timer") {
if logWantedFor("blocked") {
fmt.Printf("ticker3hours blocked but not outdated key=%s (wait %ds %ddays)\n",
dbUserKey, secsToLive, secsToLive/24*60*60)
}
Expand Down

0 comments on commit 11c8914

Please sign in to comment.