logger.c: Remove deprecated/redundant configuration option.

Remove the deprecated 'rotatetimestamp' config option, as this
was deprecated by 'rotatestrategy' in 1.6 by commit
f5a14167f3.

Resolves: #1345

UpgradeNote: The deprecated rotatetimestamp option has been removed.
Use rotatestrategy instead.
pull/1360/head
Naveen Albert 2 months ago committed by github-actions[bot]
parent 5c3cd44563
commit c8f844a900

@ -840,11 +840,6 @@ static int init_logger_chain(const char *altconf)
} else { } else {
fprintf(stderr, "Unknown rotatestrategy: %s\n", s); fprintf(stderr, "Unknown rotatestrategy: %s\n", s);
} }
} else {
if ((s = ast_variable_retrieve(cfg, "general", "rotatetimestamp"))) {
rotatestrategy = ast_true(s) ? TIMESTAMP : SEQUENTIAL;
fprintf(stderr, "rotatetimestamp option has been deprecated. Please use rotatestrategy instead.\n");
}
} }
if ((s = ast_variable_retrieve(cfg, "general", "logger_queue_limit"))) { if ((s = ast_variable_retrieve(cfg, "general", "logger_queue_limit"))) {
if (sscanf(s, "%30d", &logger_queue_limit) != 1) { if (sscanf(s, "%30d", &logger_queue_limit) != 1) {

Loading…
Cancel
Save