forked from TrueCloudLab/frostfs-node
[#1465] Add log entry for morph components shutdown action
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
85cf1f47ac
commit
c43b2dbac9
1 changed files with 4 additions and 1 deletions
|
@ -56,7 +56,10 @@ func initMorphComponents(c *cfg) {
|
||||||
fatalOnErr(err)
|
fatalOnErr(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
c.onShutdown(cli.Close)
|
c.onShutdown(func() {
|
||||||
|
c.log.Info("closing morph components...")
|
||||||
|
cli.Close()
|
||||||
|
})
|
||||||
|
|
||||||
if err := cli.SetGroupSignerScope(); err != nil {
|
if err := cli.SetGroupSignerScope(); err != nil {
|
||||||
c.log.Info("failed to set group signer scope, continue with Global", zap.Error(err))
|
c.log.Info("failed to set group signer scope, continue with Global", zap.Error(err))
|
||||||
|
|
Loading…
Reference in a new issue