Minor: downgrade another spammy error to warning.

This commit is contained in:
Mike Hearn 2017-05-18 16:11:28 +02:00
parent b461a89ac1
commit 8dde7757f1

View File

@ -113,7 +113,7 @@ class FlowStateMachineImpl<R>(override val id: StateMachineRunId,
// Check if the FlowException was propagated by looking at where the stack trace originates (see suspendAndExpectReceive).
val propagated = e.stackTrace[0].className == javaClass.name
processException(e, propagated)
logger.error(if (propagated) "Flow ended due to receiving exception" else "Flow finished with exception", e)
logger.warn(if (propagated) "Flow ended due to receiving exception" else "Flow finished with exception", e)
return
} catch (t: Throwable) {
recordDuration(startTime, success = false)