Skip to content

Commit

Permalink
fix log in manager.go
Browse files Browse the repository at this point in the history
  • Loading branch information
chicliz committed Sep 21, 2020
1 parent 6d41aa0 commit 6997a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/server/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6997a71

Please sign in to comment.