Commit e598cf2b authored by Juan Batiz-Benet's avatar Juan Batiz-Benet
Browse files

dropped down log.Errors

parent ae0386cf
......@@ -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
}
......
......@@ -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
}
......
......@@ -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
......
......@@ -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)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment