mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-25 19:04:48 -08:00
do not ignore return value of opening log in servatrice when rotating (#6564)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user