Fix log file cleanup warning only printing to debug

This commit is contained in:
GriffinR 2025-06-16 02:18:00 -04:00
parent 23584914ec
commit dd1d856bf3
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project somewhat adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The MAJOR version number is bumped when there are **"Breaking Changes"** in the pret projects. For more on this, see [the manual page on breaking changes](https://huderlem.github.io/porymap/manual/breaking-changes.html).
## [Unreleased]
Nothing, yet.
### Fixed
- Fix warning not appearing when the log file exceeds maximum size.
## [6.1.0] - 2025-06-09
### Added

View File

@ -196,8 +196,9 @@ void logInit() {
clearLogDisplays();
});
Log::initialized = true;
if (cleanupLargeLog()) {
logWarn(QString("Previous log file %1 was cleared due to being over 20MB in size.").arg(Log::path));
}
Log::initialized = true;
}