do not ignore return value of opening log in servatrice when rotating (#6564)

This commit is contained in:
ebbit1q 2026-01-24 21:05:26 +01:00 committed by GitHub
parent afdb385770
commit 8a126263a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,7 +116,9 @@ void ServerLogger::rotateLogs()
flushBuffer();
logFile->close();
logFile->open(QIODevice::Append);
if (!logFile->open(QIODevice::Append)) {
std::cerr << "ERROR: Failed to open log file for writing!" << std::endl;
}
}
QFile *ServerLogger::logFile;