Skip to content

Commit

Permalink
Convert stray fmt.Printf into logger.Printf
Browse files Browse the repository at this point in the history
  • Loading branch information
glenjamin committed Oct 21, 2022
1 parent f664d4a commit aad744e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion transmission/transmission.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ func (b *batchAgg) fireBatch(events []*Event) {
for _, resp := range batchResponses {
resp.Duration = dur / time.Duration(numEncoded)
for eIdx < len(events) && events[eIdx] == nil {
fmt.Printf("incr, eIdx: %d, len(evs): %d\n", eIdx, len(events))
b.logger.Printf("incr, eIdx: %d, len(evs): %d", eIdx, len(events))
eIdx++
}
if eIdx == len(events) { // just in case
Expand Down
1 change: 1 addition & 0 deletions transmission/transmission_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ func TestFireBatchWithBrokenFirstEvent(t *testing.T) {
withJSONAndMsgpack(t, &doMsgpack, func(t *testing.T) {
trt := &testRoundTripper{}
b := &batchAgg{
logger: &nullLogger{},
httpClient: &http.Client{Transport: trt},
testNower: &fakeNower{},
testBlocker: &sync.WaitGroup{},
Expand Down

0 comments on commit aad744e

Please sign in to comment.