diff --git a/services/hilogd/log_persister_rotator.cpp b/services/hilogd/log_persister_rotator.cpp index 36003aca9b71b6c04815890aa0539652d0f6fa98..61db2e217fc02c554f30895d98b1685a240c6249 100644 --- a/services/hilogd/log_persister_rotator.cpp +++ b/services/hilogd/log_persister_rotator.cpp @@ -29,7 +29,7 @@ LogPersisterRotator::LogPersisterRotator(string path, uint32_t fileSize, uint32_ : fileNum(fileNum), fileSize(fileSize), fileName(path), fileSuffix(suffix) { index = -1; - needRotate = false; + needRotate = true; } LogPersisterRotator::~LogPersisterRotator()