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

@ -26,7 +26,9 @@ func initProfiler(c *cfg) {
)
c.workers = append(c.workers, newWorkerFromFunc(func(context.Context) {
fatalOnErr(srv.Serve())
runAndLog(c, "profiler", false, func(c *cfg) {
fatalOnErr(srv.Serve())
})
}))
c.closers = append(c.closers, func() {