Skip to content

Commit

Permalink
Print stack trace to log when panic (#771)
Browse files Browse the repository at this point in the history
print stack trace on panic
  • Loading branch information
kerenlahav authored Jun 14, 2022
1 parent 0b05096 commit ea65774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operations/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (s *Scheduler) ScheduleAsyncStorageAction(ctx context.Context, operation *t
}); opErr != nil {
errMessage = fmt.Errorf("%s: setting new operation state failed: %s ", errMessage, opErr)
}
log.C(stateCtx).Errorf("panic error: %s", errMessage)
log.C(stateCtx).Errorf("panic error: %s \n %s", errMessage, debug.Stack())
debug.PrintStack()
}
<-s.workers
Expand Down

0 comments on commit ea65774

Please sign in to comment.