diff --git a/session/session.go b/session/session.go index b0762653a8383..4b719242e0a13 100644 --- a/session/session.go +++ b/session/session.go @@ -1508,7 +1508,10 @@ func getHostByIP(ip string) []string { return []string{variable.DefHostname} } addrs, err := net.LookupAddr(ip) - terror.Log(errors.Trace(err)) + if err != nil { + // The error is ignorable. + // The empty line here makes the golint tool (which complains err is not checked) happy. + } return addrs }