From: William King Date: Mon, 24 Feb 2014 01:22:36 +0000 (-0800) Subject: FS-5888 --resolve Rather than changing the default behavior I've updated the log... X-Git-Tag: v1.5.8~25^2~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa92f813b97f459830dff126bb58745587112d82;p=thirdparty%2Ffreeswitch.git FS-5888 --resolve Rather than changing the default behavior I've updated the log line to be more accurate. Also fixed the problem where the delay was being overwritten. --- 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 69b0b8f178..4c7c8eb1d7 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 @@ -603,9 +603,9 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_json_cdr_load) } } - if (globals.retries && globals.delay) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Retries set but delay 0 setting to 5000ms\n"); - globals.delay = 5000; + if (globals.retries && !globals.delay) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Retries set but delay 0 setting to 5 seconds\n"); + globals.delay = 5; } globals.retries++;