From a0adf349af952c6b8a4f16b046404e1e3ef2c0cf Mon Sep 17 00:00:00 2001 From: AKP Date: Wed, 6 Apr 2022 12:04:40 +0100 Subject: Enhance logging for watcher Signed-off-by: AKP --- walrss/internal/rss/watcher.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/walrss/internal/rss/watcher.go b/walrss/internal/rss/watcher.go index 9d530e7..502b4c1 100644 --- a/walrss/internal/rss/watcher.go +++ b/walrss/internal/rss/watcher.go @@ -22,8 +22,12 @@ func StartWatcher(st *state.State) { } func runFeedProcessor(st *state.State, currentTime time.Time) { - log.Info().Str("location", "feed watcher").Msg("running hourly job") currentTime = currentTime.UTC() + log.Info(). + Str("location", "feed watcher"). + Str("day", db.SendDayFromWeekday(currentTime.Weekday()).String()). + Int("hour", currentTime.Hour()). + Msg("running hourly job") if err := ProcessFeeds(st, db.SendDayFromWeekday(currentTime.Weekday()), currentTime.Hour()); err != nil { log.Error().Err(err).Str("location", "feed watcher").Send() } -- cgit v1.2.3-70-g09d2