[#1436] node: Log service initialization/boot up

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-05-25 19:18:36 +03:00 committed by fyrchik
parent d84d52924a
commit da3ae202f0
5 changed files with 46 additions and 21 deletions

View file

@ -207,7 +207,9 @@ func listenMorphNotifications(c *cfg) {
fatalOnErr(err)
c.workers = append(c.workers, newWorkerFromFunc(func(ctx context.Context) {
lis.ListenWithError(ctx, c.internalErr)
runAndLog(c, "morph notification", false, func(c *cfg) {
lis.ListenWithError(ctx, c.internalErr)
})
}))
setNetmapNotificationParser(c, newEpochNotification, netmapEvent.ParseNewEpoch)