feat:[TS-3718]save slow log file one day one file

This commit is contained in:
wangmm0220 2024-08-05 15:52:22 +08:00
parent 4d7c54d1a5
commit 9c2adc59bb
1 changed files with 1 additions and 1 deletions

View File

@ -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){