diff --git a/source/util/src/tlog.c b/source/util/src/tlog.c index 8537f35095..a0105c260b 100644 --- a/source/util/src/tlog.c +++ b/source/util/src/tlog.c @@ -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)); } } } diff --git a/tests/system-test/0-others/taosdlog.py b/tests/system-test/0-others/taosdlog.py index 7e8dc49552..b6efbe2a4d 100644 --- a/tests/system-test/0-others/taosdlog.py +++ b/tests/system-test/0-others/taosdlog.py @@ -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)