chore: prompt and test case for log

This commit is contained in:
kailixu 2025-02-12 10:05:32 +08:00
parent 0e502e05e7
commit 1c9b7d59b0
2 changed files with 3 additions and 1 deletions

View File

@ -402,7 +402,7 @@ static void taosKeepOldLog(char *oldName) {
}
if (code != 0 && tsLogEmbedded == 1) { // print error messages only in embedded log mode
// avoid using uWarn or uError, as they may open a new log file and potentially cause a deadlock.
fprintf(stderr, "failed at line %d to keep old log file:%s, reason:%s\n", lino, oldName, tstrerror(code));
fprintf(stderr, "WARN: failed at line %d to keep old log file:%s, reason:%s\n", lino, oldName, tstrerror(code));
}
}
}

View File

@ -118,6 +118,8 @@ class TDTestCase:
tdLog.info(f"wait {i+1} second(s) for log compress")
time.sleep(1)
tdSql.checkEqual(True, logCompress)
tdSql.execute("alter all dnodes 'numOfLogLines 1000000'")
tdSql.execute("alter all dnodes 'debugFlag 131'")
def prepareCfg(self, cfgPath, cfgDict):
tdLog.info("make dir %s" % cfgPath)