From 8f4797d2761560fefb3e01c1bf440ee6a1c55548 Mon Sep 17 00:00:00 2001 From: Mihail Stoykov Date: Wed, 29 Jul 2020 16:24:33 +0300 Subject: [PATCH] mark stacktraces with a source in the logs --- lib/executor/helpers.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/executor/helpers.go b/lib/executor/helpers.go index 46fdf3c432d..108b1b32963 100644 --- a/lib/executor/helpers.go +++ b/lib/executor/helpers.go @@ -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()) }