Skip to content

Commit

Permalink
Merge pull request #1174 from notlesh/reduce-rr-decode-fail-verbosity…
Browse files Browse the repository at this point in the history
…-2020-03-09

Reduce log verbosity when DNS RR decode fails
  • Loading branch information
majestrate authored Mar 9, 2020
2 parents 667b761 + f40ce50 commit a6a3d77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion llarp/dns/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ namespace llarp
{
if(not an.Decode(buf))
{
llarp::LogError("failed to decode answer");
llarp::LogDebug("failed to decode answer");
return false;
}
}
Expand Down
8 changes: 4 additions & 4 deletions llarp/dns/rr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a6a3d77

Please sign in to comment.