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.

This commit is contained in:
William King 2014-02-23 17:22:36 -08:00
parent 68e1a5635a
commit fa92f813b9
1 changed files with 3 additions and 3 deletions

View 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++;