android: log when ping fails to resolve

Change-Id: I990d9dfe24e526474601b4a18ec194be7af21331
This commit is contained in:
mpl 2013-05-27 22:28:46 +02:00
parent 45287dbd15
commit 448b456234
1 changed files with 2 additions and 0 deletions

View File

@ -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