ENT-2489: Improve logging for MultiThreadedStateMachineManager. (#1389)

This commit is contained in:
Viktor Kolomeyko
2018-09-14 11:02:04 +01:00
committed by GitHub
parent 4602a21a35
commit 271146dd4d

View File

@ -147,6 +147,7 @@ class MultiThreadedStateMachineManager(
(fiber as FlowStateMachineImpl<*>).logger.warn("Caught exception from flow", throwable) (fiber as FlowStateMachineImpl<*>).logger.warn("Caught exception from flow", throwable)
} }
serviceHub.networkMapCache.nodeReady.then { serviceHub.networkMapCache.nodeReady.then {
logger.info("Node ready, info: ${serviceHub.myInfo}")
resumeRestoredFlows(fibers) resumeRestoredFlows(fibers)
flowMessaging.start { _, deduplicationHandler -> flowMessaging.start { _, deduplicationHandler ->
lifeCycle.requireState(State.STARTED, StateMachineStoppedException("Flow cannot be started. State machine is stopped.")) { lifeCycle.requireState(State.STARTED, StateMachineStoppedException("Flow cannot be started. State machine is stopped.")) {
@ -154,6 +155,7 @@ class MultiThreadedStateMachineManager(
} }
} }
} }
logger.info("Setting status to STARTED for node info: ${serviceHub.myInfo}")
lifeCycle.transition(State.UNSTARTED, State.STARTED) lifeCycle.transition(State.UNSTARTED, State.STARTED)
} }