Skip to content

Commit

Permalink
mark stacktraces with a source in the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Jul 30, 2020
1 parent 6fe1eab commit 8f4797d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/executor/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ func getIterationRunner(
default:
if err != nil {
if s, ok := err.(fmt.Stringer); ok {
logger.Error(s.String())
// TODO better detection for stack traces
// TODO don't count this as a full iteration?
logger.WithField("source", "stacktrace").Error(s.String())
} else {
logger.Error(err.Error())
}
Expand Down

0 comments on commit 8f4797d

Please sign in to comment.