dropped down log.Errors

This commit is contained in:
Juan Batiz-Benet 2015-01-26 19:12:12 -08:00
parent ae0386cfba
commit e598cf2b77
4 changed files with 4 additions and 5 deletions

View File

@ -31,7 +31,7 @@ func (s *Swarm) InterfaceListenAddresses() ([]ma.Multiaddr, error) {
func checkNATWarning(s *Swarm, observed ma.Multiaddr, expected ma.Multiaddr) {
listen, err := s.InterfaceListenAddresses()
if err != nil {
log.Errorf("Error retrieving swarm.InterfaceListenAddresses: %s", err)
log.Debugf("Error retrieving swarm.InterfaceListenAddresses: %s", err)
return
}

View File

@ -73,7 +73,7 @@ func (ids *IDService) IdentifyConn(c inet.Conn) {
s, err := c.NewStream()
if err != nil {
log.Error("error opening initial stream for %s", ID)
log.Debugf("error opening initial stream for %s", ID)
log.Event(context.TODO(), "IdentifyOpenFailed", c.RemotePeer())
} else {
@ -91,7 +91,7 @@ func (ids *IDService) IdentifyConn(c inet.Conn) {
ids.currmu.Unlock()
if !found {
log.Errorf("IdentifyConn failed to find channel (programmer error) for %s", c)
log.Debugf("IdentifyConn failed to find channel (programmer error) for %s", c)
return
}

View File

@ -109,7 +109,6 @@ func (m *Mux) HandleSync(s inet.Stream) {
name, handler, err := m.readHeader(s)
if err != nil {
err = fmt.Errorf("protocol mux error: %s", err)
log.Error(err)
log.Event(ctx, "muxError", lgbl.Error(err))
s.Close()
return

View File

@ -46,7 +46,7 @@ func NewRelayService(h host.Host, sh inet.StreamHandler) *RelayService {
// requestHandler is the function called by clients
func (rs *RelayService) requestHandler(s inet.Stream) {
if err := rs.handleStream(s); err != nil {
log.Error("RelayService error:", err)
log.Debugf("RelayService error:", err)
}
}