Skip to content

Commit

Permalink
trace log frequent Moto Patch Add messages, debug log new patches
Browse files Browse the repository at this point in the history
  • Loading branch information
rosecitytransit committed May 23, 2023
1 parent bb1aa57 commit 0c1610e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion trunk-recorder/systems/p25_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ std::vector<TrunkMessage> P25Parser::decode_tsbk(boost::dynamic_bitset<> &tsbk,
unsigned long ga1 = bitset_shift_mask(tsbk, 48, 0xffff);
unsigned long ga2 = bitset_shift_mask(tsbk, 32, 0xffff);
unsigned long ga3 = bitset_shift_mask(tsbk, 16, 0xffff);
BOOST_LOG_TRIVIAL(debug) << "tsbk00\tMoto Patch Add \tsg: " << sg << "\tga1: " << ga1 << "\tga2: " << ga2 << "\tga3: " << ga3;
BOOST_LOG_TRIVIAL(trace) << "tsbk00\tMoto Patch Add \tsg: " << sg << "\tga1: " << ga1 << "\tga2: " << ga2 << "\tga3: " << ga3;
message.message_type = PATCH_ADD;
PatchData moto_patch_data;
moto_patch_data.sg = sg;
Expand Down
2 changes: 1 addition & 1 deletion trunk-recorder/systems/system_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ void System_impl::update_active_talkgroup_patches(PatchData patch_data) {
}
if (new_flag == true) {
// TGIDs from the Message were not found in an existing patch, so add them to a new one
// BOOST_LOG_TRIVIAL(debug) << "Adding a new patch";
BOOST_LOG_TRIVIAL(debug) << "tsbk00\tNew Motorola patch fround, \tsg: " << patch_data.sg << "\tga1: " << patch_data.ga1 << "\tga2: " << patch_data.ga2 << "\tga3: " << patch_data.ga3;
std::map<unsigned long, std::time_t> new_patch;
if (0 != patch_data.sg) {
new_patch[patch_data.sg] = update_time;
Expand Down

0 comments on commit 0c1610e

Please sign in to comment.