Skip to content

Commit d41265d

Browse files
peczenyjmmatczuk
authored andcommitted
fix debugf template to respect each type of the arguments
1 parent 3c33c77 commit d41265d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/impl/elasticsearch/v8/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ func (e *esOutput) WriteBatch(ctx context.Context, batch service.MessageBatch) e
349349
tookDuration := time.Duration(result.Took) * time.Millisecond
350350

351351
e.log.Debugf(
352-
"Successfully dispatched [%s] documents in %s (%s docs/sec)",
352+
"Successfully dispatched [%d] documents in %s (%f docs/sec)",
353353
len(result.Items),
354354
tookDuration,
355355
float64(len(result.Items))/tookDuration.Seconds(),

internal/impl/opensearch/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ func (e *Output) WriteBatch(ctx context.Context, msg service.MessageBatch) error
347347
dur := time.Since(start)
348348

349349
e.log.Debugf(
350-
"Successfully dispatched [%s] documents in %s (%s docs/sec)",
350+
"Successfully dispatched [%d] documents in %s (%f docs/sec)",
351351
biStats.NumFlushed,
352352
dur.Truncate(time.Millisecond),
353353
int64(1000.0/float64(dur/time.Millisecond)*float64(biStats.NumFlushed)),

0 commit comments

Comments
 (0)