Browse Source

chore: log autorelay start failure error

I got this error from go-ipfs (probably because I put my laptop to
sleep?) but I couldn't get any details.
pull/1583/head
Steven Allen 2 years ago
parent
commit
e6a24bd40d
  1. 2
      p2p/host/autorelay/autorelay.go

2
p2p/host/autorelay/autorelay.go

@ -101,7 +101,7 @@ func (r *AutoRelay) background() {
switch evt.Reachability {
case network.ReachabilityPrivate, network.ReachabilityUnknown:
if err := r.relayFinder.Start(); err != nil {
log.Error("failed to start relay finder")
log.Errorw("failed to start relay finder", "error", err)
}
case network.ReachabilityPublic:
r.relayFinder.Stop()

Loading…
Cancel
Save