use "and" replace "sub" (#1207)

pull/1208/head
拉小轰 3 years ago committed by GitHub
parent 2920c12ead
commit 5d07a94b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      log/std.go

@ -32,7 +32,7 @@ func (l *stdLogger) Log(level Level, keyvals ...interface{}) error {
if len(keyvals) == 0 { if len(keyvals) == 0 {
return nil return nil
} }
if len(keyvals)%2 != 0 { if (len(keyvals) & 1) == 1 {
keyvals = append(keyvals, "KEYVALS UNPAIRED") keyvals = append(keyvals, "KEYVALS UNPAIRED")
} }
buf := l.pool.Get().(*bytes.Buffer) buf := l.pool.Get().(*bytes.Buffer)

Loading…
Cancel
Save