Skip to content

Commit

Permalink
Reduce noise from 'peer has different genesis' messages
Browse files Browse the repository at this point in the history
After the unification of all networks behind a build-tag, the amount of these
warnings has risen sharply. Reduce it to a debug-level, since it isn't actionable
to an operator.
  • Loading branch information
ribasushi committed May 31, 2021
1 parent be3a8bd commit 1e72d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/hello/hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (hs *Service) HandleStream(s inet.Stream) {
"hash", hmsg.GenesisHash)

if hmsg.GenesisHash != hs.syncer.Genesis.Cids()[0] {
log.Warnf("other peer has different genesis! (%s)", hmsg.GenesisHash)
log.Debugf("other peer has different genesis! (%s)", hmsg.GenesisHash)
_ = s.Conn().Close()
return
}
Expand Down

0 comments on commit 1e72d8f

Please sign in to comment.