From 36184f3530a590f66fbc104fadf73773ad8bedc2 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Sat, 11 Apr 2015 16:14:38 +0200 Subject: [PATCH] Show correct error on wrong DNS response. --- retrieval/target_provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retrieval/target_provider.go b/retrieval/target_provider.go index 43580e445..209b7c5ce 100644 --- a/retrieval/target_provider.go +++ b/retrieval/target_provider.go @@ -114,7 +114,7 @@ func (p *sdTargetProvider) Targets() ([]Target, error) { for _, record := range response.Answer { addr, ok := record.(*dns.SRV) if !ok { - glog.Warningf("%s is not a valid SRV record", addr) + glog.Warningf("%q is not a valid SRV record", record) continue } // Remove the final dot from rooted DNS names to make them look more usual.