Update DISC subsystem log out for consistency.

This commit is contained in:
Dave Collins 2013-10-10 18:33:38 -05:00
parent 3d62b24fe1
commit 24aba3189e

View file

@ -150,7 +150,7 @@ func torLookupIP(host, proxy string) ([]net.IP, error) {
// any hosts in the list. Therefore if all hosts failed an empty slice of // any hosts in the list. Therefore if all hosts failed an empty slice of
// strings will be returned. // strings will be returned.
func dnsDiscover(seeder string, proxy string) []net.IP { func dnsDiscover(seeder string, proxy string) []net.IP {
log.Debugf("[DISC] Fetching list of seeds from %v", seeder) log.Debugf("DISC: Fetching list of seeds from %v", seeder)
peers, err := doDNSLookup(seeder, proxy) peers, err := doDNSLookup(seeder, proxy)
if err != nil { if err != nil {
seederPlusProxy := seeder seederPlusProxy := seeder
@ -158,7 +158,7 @@ func dnsDiscover(seeder string, proxy string) []net.IP {
seederPlusProxy = fmt.Sprintf("%s (proxy %s)", seederPlusProxy = fmt.Sprintf("%s (proxy %s)",
seeder, proxy) seeder, proxy)
} }
log.Warnf("[DISC] Failed to fetch dns seeds "+ log.Warnf("DISC: Failed to fetch dns seeds "+
"from %s: %v", seederPlusProxy, err) "from %s: %v", seederPlusProxy, err)
return []net.IP{} return []net.IP{}
} }