Don't print duplicate stack traces/errors when things crash
This commit is contained in:
parent
32c8e7f7c3
commit
4cef5df83e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user