Reduce log verbosity when DNS RR decode fails

pull/1174/head
Stephen Shelton 4 years ago
parent 1441115d96
commit f40ce505a8
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C

@ -125,7 +125,7 @@ namespace llarp
{
if(not an.Decode(buf))
{
llarp::LogError("failed to decode answer");
llarp::LogDebug("failed to decode answer");
return false;
}
}

@ -58,22 +58,22 @@ namespace llarp
return false;
if(!buf->read_uint16(rr_type))
{
llarp::LogError("failed to decode rr type");
llarp::LogDebug("failed to decode rr type");
return false;
}
if(!buf->read_uint16(rr_class))
{
llarp::LogError("failed to decode rr class");
llarp::LogDebug("failed to decode rr class");
return false;
}
if(!buf->read_uint32(ttl))
{
llarp::LogError("failed to decode ttl");
llarp::LogDebug("failed to decode ttl");
return false;
}
if(!DecodeRData(buf, rData))
{
llarp::LogError("failed to decode rr rdata ", *this);
llarp::LogDebug("failed to decode rr rdata ", *this);
return false;
}
return true;

Loading…
Cancel
Save