forked from TrueCloudLab/frostfs-node
[#1436] node: Log service initialization/boot up
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
d84d52924a
commit
da3ae202f0
5 changed files with 46 additions and 21 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue