Skip to content

Commit

Permalink
add task index to log output
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Jan 17, 2024
1 parent 42fe4f2 commit 7d564ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/coordinator/test/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (ts *TaskScheduler) newTask(options *types.TaskOptions, parentState *taskEx
parentState: parentState,
taskVars: variables,
logger: logger.NewLogger(&logger.ScopeOptions{
Parent: ts.logger.WithField("task", taskDescriptor.Name),
Parent: ts.logger.WithField("task", taskDescriptor.Name).WithField("taskidx", taskIdx),
HistorySize: 1000,
}),
}
Expand Down

0 comments on commit 7d564ca

Please sign in to comment.