[#1465] Add log entry for morph components shutdown action

Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
Anton Nikiforov 2023-02-10 09:23:13 +03:00 committed by fyrchik
parent 85cf1f47ac
commit c43b2dbac9

View file

@ -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))