Skip to content

Commit

Permalink
less errors for #928
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Dec 14, 2024
1 parent 6e1f7e6 commit 813539d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion trunk-recorder/systems/p25_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,9 @@ std::vector<TrunkMessage> P25Parser::parse_message(gr::message::sptr msg, System
std::string s = msg->to_string();

if (s.length() < 2) {
BOOST_LOG_TRIVIAL(error) << "P25 Parse error, s: " << s << " Len: " << s.length();
if (s.length() > 0) {
BOOST_LOG_TRIVIAL(debug) << "P25 Parse error, s: " << s << " Len: " << s.length();
}
message.message_type = INVALID_CC_MESSAGE;
messages.push_back(message);
return messages;
Expand Down

0 comments on commit 813539d

Please sign in to comment.