Skip to content

Commit 1b23616

Browse files
committed
initial version
1 parent 73ff415 commit 1b23616

13 files changed

Lines changed: 1407 additions & 6 deletions

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ list(APPEND trunk_recorder_sources
253253
trunk-recorder/sources/iq_file_source.cc
254254
trunk-recorder/csv_helper.cc
255255
trunk-recorder/config.cc
256+
trunk-recorder/config_service.cc
256257
trunk-recorder/setup_systems.cc
257258
trunk-recorder/monitor_systems.cc
258259
trunk-recorder/talkgroup.cc

trunk-recorder/call_concluder/call_concluder.cc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,12 @@ void remove_call_files(Call_Data_t call_info, bool plugin_failure=false) {
144144

145145
if (plugin_failure) {
146146
std::string loghdr = log_header( call_info.short_name, call_info.call_num, call_info.talkgroup_display , call_info.freq);
147-
switch (call_info.archive_files_on_failure) {
148-
case true:
147+
if (call_info.archive_files_on_failure) {
149148
BOOST_LOG_TRIVIAL(error) << loghdr << "Upload failed after " << call_info.retry_attempt << " attempts - " << Color::GRN << "Archiving files" << Color::RST;
150-
break;
151-
case false:
149+
} else {
152150
BOOST_LOG_TRIVIAL(error) << loghdr << "Upload failed after " << call_info.retry_attempt << " attempts - " << Color::RED << "Removing files" << Color::RST;
153-
break;
154-
}
151+
}
152+
155153
}
156154

157155
if (call_info.audio_archive || (plugin_failure && call_info.archive_files_on_failure)) {

0 commit comments

Comments
 (0)