mirror of https://github.com/perkeep/perkeep.git
android: log when ping fails to resolve
Change-Id: I990d9dfe24e526474601b4a18ec194be7af21331
This commit is contained in:
parent
45287dbd15
commit
448b456234
|
@ -150,6 +150,7 @@ func androidLookupHost(host string) string {
|
|||
br := bufio.NewReader(stdout)
|
||||
line, err := br.ReadString('\n')
|
||||
if err != nil {
|
||||
log.Printf("Failed to resolve %q with ping", host)
|
||||
c <- host
|
||||
return
|
||||
}
|
||||
|
@ -161,6 +162,7 @@ func androidLookupHost(host string) string {
|
|||
c <- ip
|
||||
return
|
||||
}
|
||||
log.Printf("Failed to resolve %q with ping", host)
|
||||
c <- host
|
||||
}()
|
||||
return <-c
|
||||
|
|
Loading…
Reference in New Issue