From edfaa6d9067a592305ada04d1926b4d96a3f5457 Mon Sep 17 00:00:00 2001 From: kevin <983774197@qq.com> Date: Sat, 4 Jun 2022 14:50:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20fixed=20typo=20(#1916)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: kevinzhang --- core/stores/mon/collection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/stores/mon/collection.go b/core/stores/mon/collection.go index 6d2f7047..8a205a2e 100644 --- a/core/stores/mon/collection.go +++ b/core/stores/mon/collection.go @@ -507,7 +507,7 @@ func (c *decoratedCollection) logDuration(ctx context.Context, method string, st content, e := json.Marshal(docs) if e != nil { - logger.Error(err) + logger.Error(e) } else if err != nil { if duration > slowThreshold.Load() { logger.Slowf("[MONGO] mongo(%s) - slowcall - %s - fail(%s) - %s",