Skip to content

Commit

Permalink
spool: add stack information in the panic log (#43827)
Browse files Browse the repository at this point in the history
close #43826
  • Loading branch information
hawkingrei committed May 15, 2023
1 parent 28f4088 commit 7a5c202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resourcemanager/pool/spool/spool.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (p *Pool) run(fn func()) {
go func() {
defer func() {
if r := recover(); r != nil {
logutil.BgLogger().Error("recover panic", zap.Any("recover", r))
logutil.BgLogger().Error("recover panic", zap.Any("recover", r), zap.Stack("stack"))
}
p.wg.Done()
p.running.Add(-1)
Expand Down

0 comments on commit 7a5c202

Please sign in to comment.