mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
Use rcode string in error message
So it's clearer what went wrong.
This commit is contained in:
committed by
Cuong Manh Le
parent
aad04200cb
commit
8ffb42962a
@@ -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