diff options
| author | Paul Buetow <paul@buetow.org> | 2024-11-08 23:04:51 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-11-08 23:04:51 +0200 |
| commit | 5ee4d7a6020e32159e735ff9e5b38be5da6bfe9c (patch) | |
| tree | cabe16c43c3ffa4a6f55c2c3095b30bfc809aa9f /internal/schedule/stats.go | |
| parent | 9b14c12e0ccd5c96dd9f17d1b20fe134308d2184 (diff) | |
dont use logger but color outputter
Diffstat (limited to 'internal/schedule/stats.go')
| -rw-r--r-- | internal/schedule/stats.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/schedule/stats.go b/internal/schedule/stats.go index 09fe3d3..f792675 100644 --- a/internal/schedule/stats.go +++ b/internal/schedule/stats.go @@ -2,7 +2,6 @@ package schedule import ( "fmt" - "log" "os" "path/filepath" "strconv" @@ -81,11 +80,11 @@ func (s stats) targetHit(pauseDays, maxQueuedDays int) bool { pauseDays-- } if s.postsPerDay >= s.postsPerDayTarget { - log.Println("Posts per day target hit") + colour.Infoln("Posts per day target hit") return true } if s.lastPostDaysAgo <= float64(pauseDays) { - log.Println("Need to wait a bit longer as last post isn't", pauseDays, "days ago yet") + colour.Infoln("Need to wait a bit longer as last post isn't", pauseDays, "days ago yet") return true } |
