remove warning on expected invalid state transition
This commit is contained in:
parent
141f1fd2db
commit
0594fe2dbe
@ -1178,9 +1178,6 @@ public abstract class Trade implements Tradable, Model {
|
|||||||
public void setStateIfValidTransitionTo(State newState) {
|
public void setStateIfValidTransitionTo(State newState) {
|
||||||
if (state.isValidTransitionTo(newState)) {
|
if (state.isValidTransitionTo(newState)) {
|
||||||
setState(newState);
|
setState(newState);
|
||||||
} else {
|
|
||||||
log.warn("State change is not getting applied because it would cause an invalid transition. " +
|
|
||||||
"Trade state={}, intended state={}", state, newState);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user