From 37cedb2a67726ae27bf9aeaaec0909817e22f015 Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Mon, 15 Apr 2024 14:41:24 +1000 Subject: [PATCH] scope logger to cron --- backend/controller/cronjobs/cronjobs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/controller/cronjobs/cronjobs.go b/backend/controller/cronjobs/cronjobs.go index 1b9a87793f..e2d4ed70e3 100644 --- a/backend/controller/cronjobs/cronjobs.go +++ b/backend/controller/cronjobs/cronjobs.go @@ -287,7 +287,7 @@ func (s *Service) killOldJobs(ctx context.Context) (time.Duration, error) { // // State is private to this function to ensure thread safety. func (s *Service) watchForUpdates(ctx context.Context) { - logger := log.FromContext(ctx) + logger := log.FromContext(ctx).Scope("cron") events := make(chan event, 128) s.events.Subscribe(events)