From 9c2adc59bb1ab2638b46915e127717233dd4a56e Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 5 Aug 2024 15:52:22 +0800 Subject: [PATCH] feat:[TS-3718]save slow log file one day one file --- source/util/src/tlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/util/src/tlog.c b/source/util/src/tlog.c index 5eacf561aa..c6c869fb23 100644 --- a/source/util/src/tlog.c +++ b/source/util/src/tlog.c @@ -150,7 +150,7 @@ static void getDay(char* buf){ time_t t = taosTime(NULL); struct tm tmInfo; if (taosLocalTime(&t, &tmInfo, buf) != NULL) { - (void)strftime(buf, sizeof(buf), "%Y-%m-%d", &tmInfo); + (void)strftime(buf, LOG_FILE_DAY_LEN, "%Y-%m-%d", &tmInfo); } } static void getFullPathName(char* fullName, const char* logName){