Skip to content

Commit 913f8c5

Browse files
committed
跳过sql
1 parent 0097125 commit 913f8c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bootstrap/services/logs/mysql_log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (l *MysqlLog) Trace(ctx context.Context, begin time.Time, fc func() (sql st
8787

8888
for _, skip := range l.skips {
8989
if strings.Index(sql, skip) != -1 {
90-
break
90+
return
9191
}
9292
}
9393
l.L.WithFields(log.Fields{"type": "query", "begin": begin, "row": rows, "t": float64(elapsed.Nanoseconds()) / 1e6}).Debug(sql)

0 commit comments

Comments
 (0)