Skip to content

Commit eae9d56

Browse files
committed
Don't set extra structured log arguments
Signed-off-by: James Munnelly <james@munnelly.eu>
1 parent c96b964 commit eae9d56

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

klog.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -817,11 +817,12 @@ func (l *loggingT) output(s severity, log logr.InfoLogger, buf *buffer, file str
817817
}
818818
data := buf.Bytes()
819819
if log != nil {
820-
keysAndValues := []interface{}{"severity", severityName[s], "file", file, "line", line}
820+
// TODO: set 'severity' and caller information as structured log info
821+
// keysAndValues := []interface{}{"severity", severityName[s], "file", file, "line", line}
821822
if s == errorLog {
822-
l.logr.Error(nil, string(data), keysAndValues...)
823+
l.logr.Error(nil, string(data))
823824
} else {
824-
log.Info(string(data), keysAndValues...)
825+
log.Info(string(data))
825826
}
826827
} else if l.toStderr {
827828
os.Stderr.Write(data)

0 commit comments

Comments
 (0)