Skip to content

Commit

Permalink
libnetwork: improve logs for DNS failures
Browse files Browse the repository at this point in the history
Signed-off-by: Yamazaki Masashi <masi19bw@gmail.com>

libnetwork: fix function call

Signed-off-by: Yamazaki Masashi <masi19bw@gmail.com>
  • Loading branch information
masibw committed Dec 22, 2022
1 parent 13b36ce commit 0787ea8
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 0787ea8

Please sign in to comment.