Skip to content

Commit

Permalink
scope logger to cron
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Apr 15, 2024
1 parent 5938f51 commit d96d920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/controller/cronjobs/cronjobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d96d920

Please sign in to comment.