Skip to content

Commit 6997a71

Browse files
committed
fix log in manager.go
1 parent 6d41aa0 commit 6997a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy/server/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ func (m *Manager) RecordBackendSQLMetrics(reqCtx *util.RequestContext, namespace
359359
// record slow sql
360360
duration := time.Since(startTime).Nanoseconds() / int64(time.Millisecond)
361361
if m.statistics.isBackendSlowSQL(startTime) {
362-
log.Warn("backend slow SQL, namespace: %s, addr: %s, sql: %s, cost: %d ms", namespace, backendAddr, sql, duration, err)
362+
log.Warn("backend slow SQL, namespace: %s, addr: %s, sql: %s, cost: %d ms", namespace, backendAddr, sql, duration)
363363
fingerprint := mysql.GetFingerprint(sql)
364364
md5 := mysql.GetMd5(fingerprint)
365365
ns.SetBackendSlowSQLFingerprint(md5, fingerprint)

0 commit comments

Comments
 (0)