Log initial DHT bootstrap results
This commit is contained in:
parent
9bb8a327c0
commit
40d7a709ee
|
@ -298,9 +298,11 @@ func (cl *Client) newDhtServer(conn net.PacketConn) (s *dht.Server, err error) {
|
|||
s, err = dht.NewServer(&cfg)
|
||||
if err == nil {
|
||||
go func() {
|
||||
if _, err := s.Bootstrap(); err != nil {
|
||||
ts, err := s.Bootstrap()
|
||||
if err != nil {
|
||||
log.Printf("error bootstrapping dht: %s", err)
|
||||
}
|
||||
log.Printf("%s: dht bootstrap: %v", s, ts)
|
||||
}()
|
||||
}
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue