Skip to content

Commit efbb37a

Browse files
author
Arun Gopalpuri
committed
fix logEntry WithFields
1 parent f051585 commit efbb37a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/logger/logrus.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ func (l *logrusLogEntry) Fatalf(template string, args ...interface{}) {
149149

150150
// WithFields adds fields to the logging context
151151
func (l *logrusLogEntry) WithFields(fields Fields) Logger {
152-
return l.WithFields(fields)
152+
return &logrusLogEntry{
153+
entry: l.entry.WithFields(convertToLogrusFields(fields)),
154+
}
153155
}
154156

155157
// convertToLogrusFields converts Fields to logrus.Fields

0 commit comments

Comments
 (0)