Skip to content

Commit 614319b

Browse files
Fix bad log line: (#139)
The logr logging interface needs a msg and key/value pairs. A mismatched number causes a a dpanic level log message from the implemented logr. Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
1 parent 26a0b23 commit 614319b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discover/probe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func (p *Probe) supermicrox(ctx context.Context, log logr.Logger) (bmcConnection
227227

228228
// looking for ATEN in the response payload isn't the most ideal way, although it is unique to Supermicros
229229
if resp.StatusCode == 200 && bytes.Contains(payload, []byte("ATEN International")) {
230-
log.V(1).Info("step", "connection", "host", p.host, "vendor", string(devices.Supermicro), "msg", "it's a supermicro")
230+
log.V(1).Info("it's a supermicro", "step", "connection", "host", p.host, "vendor", string(devices.Supermicro))
231231
return supermicrox.New(ctx, p.host, p.username, p.password, log)
232232
}
233233

0 commit comments

Comments
 (0)