Fix logging message when transition action throws exception
This commit is contained in:
@@ -287,7 +287,7 @@ public abstract class AbstractStateMachine<S, E> extends StateMachineObjectSuppo
|
||||
} catch (Exception e) {
|
||||
// aborting, executor should stop possible loop checking possible transitions
|
||||
// causing infinite execution
|
||||
log.warn("Aborting as transition " + t + " caused error " + e);
|
||||
log.warn("Aborting as transition " + t, e);
|
||||
throw new StateMachineException("Aborting as transition " + t + " caused error ", e);
|
||||
}
|
||||
notifyTransition(buildStateContext(Stage.TRANSITION, message, t, getRelayStateMachine()));
|
||||
|
||||
@@ -240,7 +240,7 @@ public class DefaultStateMachineExecutor<S, E> extends LifecycleObjectSupport im
|
||||
try {
|
||||
transit = t.transit(stateContext);
|
||||
} catch (Exception e) {
|
||||
log.warn("Aborting as transition " + t + " caused error " + e);
|
||||
log.warn("Aborting as transition " + t, e);
|
||||
}
|
||||
if (transit) {
|
||||
// if executor transit is raising exception, stop here
|
||||
|
||||
Reference in New Issue
Block a user