[#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

@ -55,7 +55,9 @@ func initControlService(c *cfg) {
control.RegisterControlServiceServer(c.cfgControlService.server, ctlSvc)
c.workers = append(c.workers, newWorkerFromFunc(func(ctx context.Context) {
fatalOnErr(c.cfgControlService.server.Serve(lis))
runAndLog(c, "control", false, func(c *cfg) {
fatalOnErr(c.cfgControlService.server.Serve(lis))
})
}))
}