mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd::net::dns: Don't log.error common NXDOMAIN rcodes.
This commit is contained in:
parent
45e9f7304f
commit
09b0c3d20d
1 changed files with 8 additions and 5 deletions
|
@ -2555,7 +2555,7 @@ try
|
|||
"Response header is marked as 'Query' and not 'Response'"
|
||||
};
|
||||
|
||||
if(unlikely(header.rcode))
|
||||
if(header.rcode)
|
||||
throw rfc1035::error
|
||||
{
|
||||
"protocol error: %s", rfc1035::rcode.at(header.rcode)
|
||||
|
@ -2632,6 +2632,9 @@ try
|
|||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
// There's no need to flash red to the log for NXDOMAIN which is
|
||||
// common in this system when probing SRV.
|
||||
if(unlikely(header.rcode != 3))
|
||||
log.error("resolver tag:%u [%s]: %s",
|
||||
tag.id,
|
||||
string(tag.hp),
|
||||
|
|
Loading…
Reference in a new issue