From 5ee4d7a6020e32159e735ff9e5b38be5da6bfe9c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 8 Nov 2024 23:04:51 +0200 Subject: dont use logger but color outputter --- internal/schedule/stats.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/schedule/stats.go') 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 } -- cgit v1.2.3