mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
do not ignore return value of opening log in servatrice when rotating (#6564)
This commit is contained in:
parent
afdb385770
commit
8a126263a9
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue