aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Berndt <lukekb@gmail.com>2022-09-25 08:27:38 -0400
committerLuke Berndt <lukekb@gmail.com>2022-09-25 08:27:38 -0400
commitfe2eecbe1580db64cfe95be7bd7f2c21dd69045c (patch)
tree30a5e5578c5b462d0bf3a4030da32726b8cc2a8a
parent366a34a77757e85231f50f236f3f3533ccf762e9 (diff)
Restoring error messagesLTS
Restoring error messages that somehow got commented out. This should address: #705 #678 Also upgrading the level for the no source found message to Error.
-rwxr-xr-xtrunk-recorder/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/trunk-recorder/main.cc b/trunk-recorder/main.cc
index e2dd84bd..218e0823 100755
--- a/trunk-recorder/main.cc
+++ b/trunk-recorder/main.cc
@@ -624,7 +624,7 @@ bool start_recorder(Call *call, TrunkMessage message, System *sys) {
if (call->get_encrypted() == true || (talkgroup && (talkgroup->mode.compare("E") == 0 || talkgroup->mode.compare("TE") == 0 || talkgroup->mode.compare("DE") == 0))) {
if (sys->get_hideEncrypted() == false) {
- // BOOST_LOG_TRIVIAL(info) << "[" << sys->get_short_name() << "]\t\033[0;34m" << call->get_call_num() << "C\033[0m\tTG: " << call->get_talkgroup_display() << "\tFreq: " << format_freq(call->get_freq()) << "\t\u001b[31mNot Recording: ENCRYPTED\u001b[0m ";
+ BOOST_LOG_TRIVIAL(info) << "[" << sys->get_short_name() << "]\t\033[0;34m" << call->get_call_num() << "C\033[0m\tTG: " << call->get_talkgroup_display() << "\tFreq: " << format_freq(call->get_freq()) << "\t\u001b[31mNot Recording: ENCRYPTED\u001b[0m ";
}
return false;
}
@@ -719,7 +719,7 @@ bool start_recorder(Call *call, TrunkMessage message, System *sys) {
}
if (!source_found) {
- // BOOST_LOG_TRIVIAL(info) << "[" << sys->get_short_name() << "]\t\033[0;34m" << call->get_call_num() << "C\033[0m\tTG: " << call->get_talkgroup_display() << "\tFreq: " << format_freq(call->get_freq()) << "\t\u001b[36mNot Recording: no source covering Freq\u001b[0m";
+ BOOST_LOG_TRIVIAL(error) << "[" << sys->get_short_name() << "]\t\033[0;34m" << call->get_call_num() << "C\033[0m\tTG: " << call->get_talkgroup_display() << "\tFreq: " << format_freq(call->get_freq()) << "\t\u001b[36mNot Recording: no source covering Freq\u001b[0m";
return false;
}
return false;