Skip to content

Commit 68d80a0

Browse files
authored
🩹 bug: Fix Fprint to use format instead of fmtArgs (#3924)
1 parent 5346c81 commit 68d80a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

log/default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (l *defaultLogger) privateLogf(lv Level, format string, fmtArgs []interface
5151
if len(fmtArgs) > 0 {
5252
_, _ = fmt.Fprintf(buf, format, fmtArgs...)
5353
} else {
54-
_, _ = fmt.Fprint(buf, fmtArgs...)
54+
_, _ = fmt.Fprint(buf, format)
5555
}
5656
_ = l.stdlog.Output(l.depth, buf.String()) //nolint:errcheck // It is fine to ignore the error
5757
buf.Reset()

0 commit comments

Comments
 (0)