diff options
| -rw-r--r-- | walrss/internal/rss/watcher.go | 6 |
1 files changed, 5 insertions, 1 deletions
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() } |
