From 22ffe6841ddadbaa42c99af599ea699f3bec1ce6 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Sat, 18 Jun 2022 18:19:35 +0800 Subject: [PATCH] change default values of log_file_rotate_everyday and log_file_keep_days --- src/sf_global.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sf_global.c b/src/sf_global.c index dc3c819..43986a1 100644 --- a/src/sf_global.c +++ b/src/sf_global.c @@ -157,9 +157,9 @@ int sf_load_log_config(IniFullContext *ini_ctx, LogContext *log_ctx, } log_cfg->rotate_everyday = iniGetBoolValueEx(ini_ctx->section_name, - "log_file_rotate_everyday", ini_ctx->context, false, true); + "log_file_rotate_everyday", ini_ctx->context, true, true); log_cfg->keep_days = iniGetIntValueEx(ini_ctx->section_name, - "log_file_keep_days", ini_ctx->context, 0, true); + "log_file_keep_days", ini_ctx->context, 15, true); log_cfg->compress_old = iniGetBoolValueEx(ini_ctx->section_name, "log_file_compress_old", ini_ctx->context, false, true); log_cfg->compress_days_before = iniGetIntValueEx(ini_ctx->section_name,