0
0
Fork 0
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:
Jason Volk 2018-02-07 12:15:01 -08:00
parent 45e9f7304f
commit 09b0c3d20d

View file

@ -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),