Fix key name in log entry

This commit is contained in:
Sargun Dhillon
2021-01-08 01:00:22 -08:00
parent 1b8597647b
commit 3830b0ed79

View File

@@ -124,7 +124,7 @@ func (q *Queue) Run(ctx context.Context, workers int) {
func (q *Queue) worker(ctx context.Context, i int) {
ctx = log.WithLogger(ctx, log.G(ctx).WithFields(map[string]interface{}{
"workerId": i,
"Queue": q.name,
"queue": q.name,
}))
for q.handleQueueItem(ctx) {
}