MCPcopy Create free account
hub / github.com/flant/shell-operator / WithLogger

Function WithLogger

pkg/task/queue/task_queue.go:172–177  ·  view source on GitHub ↗
(logger *log.Logger)

Source from the content-addressed store, hash-verified

170}
171
172func WithLogger(logger *log.Logger) TaskQueueOption {
173 return func(q *TaskQueue) {
174 q.logger = logger
175 q.logger = q.logger.Named(q.Name)
176 }
177}
178
179// NewTasksQueue creates a new TaskQueue with the provided options
180func NewTasksQueue(name string, metricStorage metricsstorage.Storage, opts ...TaskQueueOption) *TaskQueue {

Callers 2

bootstrapMainQueueMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected