fix: reduce log spam (#394)

This message will be received on reconnect and/or when we receive multiple
connections. It apparently shows up in logs quite frequently.
This commit is contained in:
Steven Allen 2020-12-10 10:19:39 -08:00 committed by GitHub
parent aa4f9dac2f
commit 98f8611700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -481,7 +481,7 @@ func (p *PubSub) processLoop(ctx context.Context) {
select {
case pid := <-p.newPeers:
if _, ok := p.peers[pid]; ok {
log.Warn("already have connection to peer: ", pid)
log.Debug("already have connection to peer: ", pid)
continue
}