From e408f409fedfeb0d93609d0d8426f7793d2e1c30 Mon Sep 17 00:00:00 2001 From: Brian West Date: Fri, 16 Jan 2015 09:31:08 -0600 Subject: [PATCH] FS-7157 #resolve --- src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c index 5bda3d7c18..098bd52a0e 100644 --- a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c +++ b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c @@ -399,8 +399,9 @@ static void process_cdr(cdr_data_t *data) switch_assert(globals.url_count <= MAX_URLS); if (globals.url_index >= globals.url_count) { globals.url_index = 0; - } - switch_log_printf(SWITCH_CHANNEL_UUID_LOG(data->uuid), SWITCH_LOG_ERROR, "Retry will be with url [%s]\n", globals.urls[globals.url_index]); + } else { + switch_log_printf(SWITCH_CHANNEL_UUID_LOG(data->uuid), SWITCH_LOG_ERROR, "Retry will be with url [%s]\n", globals.urls[globals.url_index]); + } } } switch_curl_easy_cleanup(curl_handle);