Fix key name in log entry
This commit is contained in:
@@ -124,7 +124,7 @@ func (q *Queue) Run(ctx context.Context, workers int) {
|
|||||||
func (q *Queue) worker(ctx context.Context, i int) {
|
func (q *Queue) worker(ctx context.Context, i int) {
|
||||||
ctx = log.WithLogger(ctx, log.G(ctx).WithFields(map[string]interface{}{
|
ctx = log.WithLogger(ctx, log.G(ctx).WithFields(map[string]interface{}{
|
||||||
"workerId": i,
|
"workerId": i,
|
||||||
"Queue": q.name,
|
"queue": q.name,
|
||||||
}))
|
}))
|
||||||
for q.handleQueueItem(ctx) {
|
for q.handleQueueItem(ctx) {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user