Skip to content

Commit

Permalink
node: Add INFO logs for morph switches
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
carpawell committed Jul 20, 2023
1 parent 83ee23b commit 25522ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/neofs-node/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ func (c *cfg) onShutdown(f func()) {
}

func (c *cfg) restartMorph() error {
c.log.Info("restarting internal services because of RPC connection loss...")

c.shared.resetCaches()

epoch, ni, err := getNetworkState(c)
Expand All @@ -180,5 +182,7 @@ func (c *cfg) restartMorph() error {
c.log.Warn("failed to re-bootstrap", zap.Error(err))
}

c.log.Info("internal services have been restarted after RPC connection loss")

return nil
}

0 comments on commit 25522ce

Please sign in to comment.