diff --git a/log/std.go b/log/std.go index ef9c14a17..1aab1929f 100644 --- a/log/std.go +++ b/log/std.go @@ -32,7 +32,7 @@ func (l *stdLogger) Log(level Level, keyvals ...interface{}) error { if len(keyvals) == 0 { return nil } - if len(keyvals)%2 != 0 { + if (len(keyvals) & 1) == 1 { keyvals = append(keyvals, "KEYVALS UNPAIRED") } buf := l.pool.Get().(*bytes.Buffer)