Browse Source

p2p: Do not write 'Couldn't connect to any seeds' if there are no seeds (#3834)

* Do not write 'Couldn't connect to any seeds' if there are no seeds

* changelog

* remove privValUpgrade

* Fix typo in changelog

* Update CHANGELOG_PENDING.md

Co-Authored-By: Marko <marbar3778@yahoo.com>

I'm setting up all peers dynamically by calling dial_peers, so p2p.seeds in configs is empty, and I'm seeing error log a lot in logs.
pull/3835/head
folex 6 years ago
committed by Anton Kaliaev
parent
commit
3ee7c0bfba
2 changed files with 5 additions and 1 deletions
  1. +1
    -0
      CHANGELOG_PENDING.md
  2. +4
    -1
      p2p/pex/pex_reactor.go

+ 1
- 0
CHANGELOG_PENDING.md View File

@ -20,6 +20,7 @@ program](https://hackerone.com/tendermint).
### IMPROVEMENTS: ### IMPROVEMENTS:
- [p2p] \#3834 Do not write 'Couldn't connect to any seeds' error log if there are no seeds in config file
- [abci] \#3809 Recover from application panics in `server/socket_server.go` to allow socket cleanup (@ruseinov) - [abci] \#3809 Recover from application panics in `server/socket_server.go` to allow socket cleanup (@ruseinov)
- [rpc] \#2252 Add `/broadcast_evidence` endpoint to submit double signing and other types of evidence - [rpc] \#2252 Add `/broadcast_evidence` endpoint to submit double signing and other types of evidence
- [rpc] \#3818 Make `max_body_bytes` and `max_header_bytes` configurable - [rpc] \#3818 Make `max_body_bytes` and `max_header_bytes` configurable


+ 4
- 1
p2p/pex/pex_reactor.go View File

@ -594,7 +594,10 @@ func (r *PEXReactor) dialSeeds() {
} }
r.Switch.Logger.Error("Error dialing seed", "err", err, "seed", seedAddr) r.Switch.Logger.Error("Error dialing seed", "err", err, "seed", seedAddr)
} }
r.Switch.Logger.Error("Couldn't connect to any seeds")
// do not write error message if there were no seeds specified in config
if len(r.seedAddrs) > 0 {
r.Switch.Logger.Error("Couldn't connect to any seeds")
}
} }
// AttemptsToDial returns the number of attempts to dial specific address. It // AttemptsToDial returns the number of attempts to dial specific address. It


Loading…
Cancel
Save