Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.

Commit 1dc2578

Browse files
authored
Merge pull request #620 from dexhorthy/stack-log
Log a stack trace on a failed completestep
2 parents acbfd01 + e2c5e78 commit 1dc2578

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/lifecycle/daemon/routes_navcycle_completestep.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ func (d *NavcycleRoutes) awaitAsyncStep(errChan chan error, debug log.Logger, st
114114
// listen on err chan for step
115115
case err := <-errChan:
116116
if err != nil {
117-
level.Error(debug).Log("event", "async.fail", "err", err, "progress", d.progress(step))
117+
errToPrint := fmt.Sprintf("%+v", err) // log a stack trace on failed completestep
118+
level.Error(debug).Log("event", "async.fail", "err", err, "errorWithStack", errToPrint, "progress", d.progress(step))
118119
return err
119120
}
120121
level.Info(debug).Log("event", "task.complete", "progess", d.progress(step))

0 commit comments

Comments
 (0)