]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5888 --resolve Rather than changing the default behavior I've updated the log...
authorWilliam King <william.king@quentustech.com>
Mon, 24 Feb 2014 01:22:36 +0000 (17:22 -0800)
committerWilliam King <william.king@quentustech.com>
Mon, 24 Feb 2014 01:23:04 +0000 (17:23 -0800)
src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c

index 69b0b8f178d6dec2b326d82bb3816dce28cccfcb..4c7c8eb1d725ec509f0297c9738a807daa8039d1 100644 (file)
@@ -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++;