We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d990c6 commit 9c89227Copy full SHA for 9c89227
pkg/executor/adapter.go
@@ -1861,9 +1861,11 @@ func (a *ExecStmt) SummaryStmt(succ bool) {
1861
planGenerator := func() (p string, h string, e any) {
1862
defer func() {
1863
e = recover()
1864
- logutil.BgLogger().Warn("fail to generate plan info",
1865
- zap.Stack("backtrace"),
1866
- zap.Any("error", e))
+ if e != nil {
+ logutil.BgLogger().Warn("fail to generate plan info",
+ zap.Stack("backtrace"),
1867
+ zap.Any("error", e))
1868
+ }
1869
}()
1870
p, h = getEncodedPlan(stmtCtx, !sessVars.InRestrictedSQL)
1871
return
0 commit comments