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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,6 +147,7 @@ class MultiThreadedStateMachineManager(
(fiber as FlowStateMachineImpl<*>).logger.warn("Caught exception from flow", throwable)
}
serviceHub.networkMapCache.nodeReady.then {
logger.info("Node ready, info: ${serviceHub.myInfo}")
resumeRestoredFlows(fibers)
flowMessaging.start { _, deduplicationHandler ->
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)
}