Skip to content

Commit

Permalink
don't remove call when upload failed (#939)
Browse files Browse the repository at this point in the history
Co-authored-by: Luke Berndt <[email protected]>
  • Loading branch information
rosecitytransit and robotastic authored Dec 15, 2024
1 parent 8083a86 commit 48b0ee1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions trunk-recorder/call_concluder/call_concluder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,7 @@ void Call_Concluder::manage_call_data_workers() {
std::string loghdr = log_header( call_info.short_name, call_info.call_num, call_info.talkgroup_display , call_info.freq);

if (call_info.retry_attempt > Call_Concluder::MAX_RETRY) {
remove_call_files(call_info);
BOOST_LOG_TRIVIAL(error) << loghdr << "Failed to conclude call - " << std::put_time(std::localtime(&start_time), "%c %Z");
BOOST_LOG_TRIVIAL(error) << "[" << call_info.short_name << "]\t\033[0;34m" << call_info.call_num << "C\033[0m Failed to conclude call - TG: " << call_info.talkgroup_display << "\t" << std::put_time(std::localtime(&start_time), "%c %Z");
} else {
long jitter = rand() % 10;
long backoff = (2 ^ call_info.retry_attempt * 60) + jitter;
Expand Down

0 comments on commit 48b0ee1

Please sign in to comment.