Skip to content

Commit

Permalink
fix: Logger string interpolation (#1104)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwu3535 authored and noahmmcgivern committed Mar 1, 2024
1 parent acdbc6d commit c7808d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/events/events_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"context"
"errors"
"fmt"
"time"
)

Expand Down Expand Up @@ -165,7 +166,7 @@ func (e *Events) batchWorker(ctx context.Context, id int) (err error) {
count = 0
}
case <-ctx.Done():
e.logger.Trace("batchWorker[", id, "]: exiting per context Done")
e.logger.Trace(fmt.Sprintf("batchWorker[%d]: exiting per context Done", id))
return ctx.Err()
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/logs/logs_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (e *Logs) batchWorker(ctx context.Context, id int) (err error) {
count = 0
}
case <-ctx.Done():
e.logger.Trace("batchWorker[", id, "]: exiting per context Done")
e.logger.Trace(fmt.Sprintf("batchWorker[%d]: exiting per context Done", id))
return ctx.Err()
}
}
Expand Down

0 comments on commit c7808d4

Please sign in to comment.