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) { ...@@ -31,7 +31,7 @@ func (s *Swarm) InterfaceListenAddresses() ([]ma.Multiaddr, error) {
func checkNATWarning(s *Swarm, observed ma.Multiaddr, expected ma.Multiaddr) { func checkNATWarning(s *Swarm, observed ma.Multiaddr, expected ma.Multiaddr) {
listen, err := s.InterfaceListenAddresses() listen, err := s.InterfaceListenAddresses()
if err != nil { if err != nil {
log.Errorf("Error retrieving swarm.InterfaceListenAddresses: %s", err) log.Debugf("Error retrieving swarm.InterfaceListenAddresses: %s", err)
return return
} }
......
...@@ -73,7 +73,7 @@ func (ids *IDService) IdentifyConn(c inet.Conn) { ...@@ -73,7 +73,7 @@ func (ids *IDService) IdentifyConn(c inet.Conn) {
s, err := c.NewStream() s, err := c.NewStream()
if err != nil { 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()) log.Event(context.TODO(), "IdentifyOpenFailed", c.RemotePeer())
} else { } else {
...@@ -91,7 +91,7 @@ func (ids *IDService) IdentifyConn(c inet.Conn) { ...@@ -91,7 +91,7 @@ func (ids *IDService) IdentifyConn(c inet.Conn) {
ids.currmu.Unlock() ids.currmu.Unlock()
if !found { 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 return
} }
......
...@@ -109,7 +109,6 @@ func (m *Mux) HandleSync(s inet.Stream) { ...@@ -109,7 +109,6 @@ func (m *Mux) HandleSync(s inet.Stream) {
name, handler, err := m.readHeader(s) name, handler, err := m.readHeader(s)
if err != nil { if err != nil {
err = fmt.Errorf("protocol mux error: %s", err) err = fmt.Errorf("protocol mux error: %s", err)
log.Error(err)
log.Event(ctx, "muxError", lgbl.Error(err)) log.Event(ctx, "muxError", lgbl.Error(err))
s.Close() s.Close()
return return
......
...@@ -46,7 +46,7 @@ func NewRelayService(h host.Host, sh inet.StreamHandler) *RelayService { ...@@ -46,7 +46,7 @@ func NewRelayService(h host.Host, sh inet.StreamHandler) *RelayService {
// requestHandler is the function called by clients // requestHandler is the function called by clients
func (rs *RelayService) requestHandler(s inet.Stream) { func (rs *RelayService) requestHandler(s inet.Stream) {
if err := rs.handleStream(s); err != nil { 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