fix: wrong order of Logger prefix kvs (#2273)

pull/2096/merge
Haibo 2 years ago committed by GitHub
parent 84235462b7
commit 6d665c0ce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      log/log.go

@ -40,8 +40,8 @@ func With(l Logger, kv ...interface{}) Logger {
return &logger{logger: l, prefix: kv, hasValuer: containsValuer(kv), ctx: context.Background()}
}
kvs := make([]interface{}, 0, len(c.prefix)+len(kv))
kvs = append(kvs, kv...)
kvs = append(kvs, c.prefix...)
kvs = append(kvs, kv...)
return &logger{
logger: c.logger,
prefix: kvs,

Loading…
Cancel
Save