2
0
mirror of synced 2025-02-24 14:48:27 +00:00

Squash some unhelpful log messages now that stuff is available in status

This commit is contained in:
Matt Joiner 2014-07-16 17:08:25 +10:00
parent 8910eb660d
commit 583d5c266a
2 changed files with 6 additions and 6 deletions

View File

@ -240,7 +240,7 @@ func (cl *Client) acceptConnections() {
log.Print(err) log.Print(err)
return return
} }
log.Printf("accepted connection from %s", conn.RemoteAddr()) // log.Printf("accepted connection from %s", conn.RemoteAddr())
go func() { go func() {
if err := cl.runConnection(conn, nil, peerSourceIncoming); err != nil { if err := cl.runConnection(conn, nil, peerSourceIncoming); err != nil {
log.Print(err) log.Print(err)
@ -939,10 +939,10 @@ func (cl *Client) announceTorrentDHT(t *torrent) {
Port: int(cp.Port), Port: int(cp.Port),
Source: peerSourceDHT, Source: peerSourceDHT,
}) })
log.Printf("peer from dht: %s", &net.UDPAddr{ // log.Printf("peer from dht: %s", &net.UDPAddr{
IP: cp.IP[:], // IP: cp.IP[:],
Port: int(cp.Port), // Port: int(cp.Port),
}) // })
} }
return return
}()) }())

View File

@ -671,7 +671,7 @@ func (s *Server) Bootstrap() (err error) {
case <-noOutstanding: case <-noOutstanding:
} }
s.mu.Lock() s.mu.Lock()
log.Printf("now have %d nodes", len(s.nodes)) // log.Printf("now have %d nodes", len(s.nodes))
if len(s.nodes) >= 8*160 { if len(s.nodes) >= 8*160 {
break break
} }