From 6997a71ca2235f3c6be92c1abe8573208948bd53 Mon Sep 17 00:00:00 2001 From: maidoudou Date: Mon, 21 Sep 2020 17:38:13 +0800 Subject: [PATCH] fix log in manager.go --- proxy/server/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/server/manager.go b/proxy/server/manager.go index 5956c2f5..d1a2dbef 100644 --- a/proxy/server/manager.go +++ b/proxy/server/manager.go @@ -359,7 +359,7 @@ func (m *Manager) RecordBackendSQLMetrics(reqCtx *util.RequestContext, namespace // record slow sql duration := time.Since(startTime).Nanoseconds() / int64(time.Millisecond) if m.statistics.isBackendSlowSQL(startTime) { - log.Warn("backend slow SQL, namespace: %s, addr: %s, sql: %s, cost: %d ms", namespace, backendAddr, sql, duration, err) + log.Warn("backend slow SQL, namespace: %s, addr: %s, sql: %s, cost: %d ms", namespace, backendAddr, sql, duration) fingerprint := mysql.GetFingerprint(sql) md5 := mysql.GetMd5(fingerprint) ns.SetBackendSlowSQLFingerprint(md5, fingerprint)