Explorar o código

🐞 fix: fixed typo (#1916)

Co-authored-by: kevinzhang <kevinzhang@moonton.com>
kevin %!s(int64=2) %!d(string=hai) anos
pai
achega
edfaa6d906
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/stores/mon/collection.go

+ 1 - 1
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",