Skip to content

Commit

Permalink
feat: Add worker name to log message
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Sep 12, 2024
1 parent 082abe0 commit 1a21e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/processor/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ func (bvp *BatchItemProcessor[T]) sendBatch(batch []*TraceableItem[T], reason st
}

func (bvp *BatchItemProcessor[T]) worker(ctx context.Context, number int) {
bvp.log.Infof("Starting worker %d", number)
bvp.log.Infof("Starting worker %d for %s", number, bvp.name)

for {
select {
Expand Down

0 comments on commit 1a21e6a

Please sign in to comment.