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

Commit

Permalink
Merge pull request #303 from mesosphere/exchanger-better-error-logs
Browse files Browse the repository at this point in the history
exchanger: Improve ErrorLogging
  • Loading branch information
tsenart committed Oct 6, 2015
2 parents ba19f2d + cdccd03 commit 54854aa
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("%v: exchanging %#v with %q", err, m, a)
}
}()
return ex.Exchange(m, a)
Expand Down

0 comments on commit 54854aa

Please # to comment.