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 19, 2023
1 parent efb91d6 commit a499b99
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 a499b99

Please sign in to comment.