mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 00:23:18 +00:00
Merge pull request #634 from fabxc/fix/dns-error
Show correct error on wrong DNS response.
This commit is contained in:
commit
c44c81ebb0
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user