Don't print duplicate stack traces/errors when things crash

This commit is contained in:
Sasha Koshka 2025-11-24 10:38:44 -05:00
parent 32c8e7f7c3
commit 4cef5df83e

View File

@ -347,7 +347,6 @@ func (this *environment) runRunnable(ctx context.Context, actor Runnable) (stopE
return
} else {
// failure
log.Printf("XXX [%s] failed: %v", typ, err)
if this.flags.crashOnError {
panic(fmt.Sprint(err))
}
@ -358,6 +357,10 @@ func (this *environment) runRunnable(ctx context.Context, actor Runnable) (stopE
stopErr = err
return
}
// print the failure message here because we won't be
// returning to run().
log.Printf("XXX [%s] failed: %v", typ, err)
}
// restart logic