Skip to content

Commit

Permalink
Improve Flow event listener log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
latenssi committed Dec 8, 2021
1 parent 8fbeaa8 commit 12940a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions chain_events/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (l *Listener) Start() *Listener {
}
}()

log.Info("Started")
log.Info("Started Flow event listener")

return l
}
Expand All @@ -194,13 +194,16 @@ func (l *Listener) initHeight() error {
}

func (l *Listener) Stop() {
log.Info("Stopping")
log.Info("Stopping Flow event listener")

if l.ticker != nil {
l.ticker.Stop()
}

if l.done != nil {
l.done <- true
}

l.ticker = nil
}

Expand Down

0 comments on commit 12940a7

Please sign in to comment.