🐞 fix: fixed typo (#1916)

Co-authored-by: kevinzhang <kevinzhang@moonton.com>
master
kevin 3 years ago committed by GitHub
parent b6b96d9dad
commit edfaa6d906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -507,7 +507,7 @@ func (c *decoratedCollection) logDuration(ctx context.Context, method string, st
content, e := json.Marshal(docs) content, e := json.Marshal(docs)
if e != nil { if e != nil {
logger.Error(err) logger.Error(e)
} else if err != nil { } else if err != nil {
if duration > slowThreshold.Load() { if duration > slowThreshold.Load() {
logger.Slowf("[MONGO] mongo(%s) - slowcall - %s - fail(%s) - %s", logger.Slowf("[MONGO] mongo(%s) - slowcall - %s - fail(%s) - %s",

Loading…
Cancel
Save