mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-11-06 01:13:39 +01:00
Use rcode string in error message
So it's clearer what went wrong.
This commit is contained in:
1 parent
aad04200cb
commit
8ffb42962a
1 file changed
+1
-1
@@ -185,7 +185,7 @@ func (uc *UpstreamConfig) SetupBootstrapIP() {
|
||||
return
|
||||
}
|
||||
if r.Rcode != dns.RcodeSuccess {
|
||||
ProxyLog.Error().Msgf("could not resolve domain return code: %d, upstream", r.Rcode)
|
||||
ProxyLog.Error().Msgf("could not resolve domain %q, return code: %s", uc.Domain, dns.RcodeToString[r.Rcode])
|
||||
return
|
||||
}
|
||||
if len(r.Answer) == 0 {
|
||||
|
||||
Reference in new issue
Block a user