Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
exchanger: Improve ErrorLogging
Browse files Browse the repository at this point in the history
While debugging #297 and #298, it became apparent that this extra
information would be very useful in aiding understanding of the issue.
  • Loading branch information
Tomás Senart committed Oct 6, 2015
1 parent ba19f2d commit 5b7c99e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchanger/exchanger.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func ErrorLogging(l *log.Logger) Decorator {
return Func(func(m *dns.Msg, a string) (r *dns.Msg, rtt time.Duration, err error) {
defer func() {
if err != nil {
l.Printf("error exchanging with %q: %v", a, err)
l.Printf("error exchanging %s with %q: %v", m.Question[0], a, err)
}
}()
return ex.Exchange(m, a)
Expand Down

0 comments on commit 5b7c99e

Please sign in to comment.