From ea657744871ea70f17a7007d6ab23ff19ad2134e Mon Sep 17 00:00:00 2001 From: kerenlahav <45451976+kerenlahav@users.noreply.github.com> Date: Tue, 14 Jun 2022 13:53:03 +0300 Subject: [PATCH] Print stack trace to log when panic (#771) print stack trace on panic --- operations/scheduler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operations/scheduler.go b/operations/scheduler.go index 530f0150f..cb43999cb 100644 --- a/operations/scheduler.go +++ b/operations/scheduler.go @@ -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