From 6d665c0ce640cd1b35e72f68d5009af09825d65c Mon Sep 17 00:00:00 2001 From: Haibo Date: Sat, 13 Aug 2022 13:00:43 +0800 Subject: [PATCH] fix: wrong order of Logger prefix kvs (#2273) --- log/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log/log.go b/log/log.go index c1fad7703..bbaf94dae 100644 --- a/log/log.go +++ b/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,