Skip to content

Commit

Permalink
Merge pull request moby#44667 from masibw/44610-logs-for-DNS-failures
Browse files Browse the repository at this point in the history
libnetwork: improve logs for DNS failures
  • Loading branch information
corhere authored Dec 22, 2022
2 parents bcb8f69 + 0787ea8 commit 3330fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libnetwork/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ func (r *resolver) ServeDNS(w dns.ResponseWriter, query *dns.Msg) {
// client can retry over TCP
if err != nil && (resp == nil || !resp.Truncated) {
r.forwardQueryEnd()
logrus.WithError(err).Debugf("[resolver] failed to read from DNS server")
logrus.WithError(err).Warnf("[resolver] failed to read from DNS server: %s, query: %s", extConn.RemoteAddr().String(), query.Question[0].String())
continue
}
r.forwardQueryEnd()
Expand Down

0 comments on commit 3330fc2

Please sign in to comment.