]> 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:22:36 +0000 (17:22 -0800)
src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c

index c6dc7a6078457142b7bb6df97289ebc3a53b0f42..ebb14566d9cdc82f393bd85d30b9c4301143b6b3 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++;