forked from TrueCloudLab/frostfs-node
[#1763] morph/event: Write log message about new notification event
Sometimes it is useful to track sidechain events processed by the node. For example, we need some easy way to look up for log messages about new epoch notifications. Make `subscriber.Subscriber` to log names of all events received from the sidechain notification channel. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
8e8265d5ea
commit
3a206b5d7a
1 changed files with 4 additions and 0 deletions
|
@ -133,6 +133,10 @@ func (s *subscriber) routeNotifications(ctx context.Context) {
|
|||
continue
|
||||
}
|
||||
|
||||
s.log.Debug("new notification event from sidechain",
|
||||
zap.String("name", notifyEvent.Name),
|
||||
)
|
||||
|
||||
s.notifyChan <- notifyEvent
|
||||
case neorpc.BlockEventID:
|
||||
b, ok := notification.Value.(*block.Block)
|
||||
|
|
Loading…
Reference in a new issue