update logger package for new level 'notice'

This commit is contained in:
Ethan Buchman
2015-07-19 21:15:45 +00:00
parent 95765db7eb
commit e087284a4f
7 changed files with 26 additions and 6 deletions

View File

@@ -338,7 +338,7 @@ func (sw *Switch) listenerRoutine(l Listener) {
// ignore connection if we already have enough
if maxNumPeers <= sw.peers.Size() {
log.Debug("Ignoring inbound connection: already have enough peers", "conn", inConn, "numPeers", sw.peers.Size(), "max", maxNumPeers)
log.Debug("Ignoring inbound connection: already have enough peers", "address", inConn.RemoteAddr().String(), "numPeers", sw.peers.Size(), "max", maxNumPeers)
continue
}
@@ -351,7 +351,7 @@ func (sw *Switch) listenerRoutine(l Listener) {
// New inbound connection!
_, err := sw.AddPeerWithConnection(inConn, false)
if err != nil {
log.Info("Ignoring inbound connection: error on AddPeerWithConnection", "conn", inConn, "error", err)
log.Info("Ignoring inbound connection: error on AddPeerWithConnection", "address", inConn.RemoteAddr().String(), "error", err)
continue
}