Revert "GH-1665 diagnostic build - check if log file has been created and opened"
This reverts commit 2597bde4f9
.
This commit is contained in:
parent
2c2c1b0a17
commit
3d94fb8d24
@ -429,11 +429,8 @@ void appDebugOutput(QtMsgType type, const QMessageLogContext &context, const QSt
|
||||
|
||||
QString out = format.arg(buf).arg(levels[type]).arg(msg);
|
||||
|
||||
if(MMC->logFile && MMC->logFile->isOpen())
|
||||
{
|
||||
MMC->logFile->write(out.toUtf8());
|
||||
MMC->logFile->flush();
|
||||
}
|
||||
MMC->logFile->write(out.toUtf8());
|
||||
MMC->logFile->flush();
|
||||
QTextStream(stderr) << out.toLocal8Bit();
|
||||
fflush(stderr);
|
||||
}
|
||||
@ -451,11 +448,6 @@ void MultiMC::initLogger()
|
||||
|
||||
logFile = std::make_shared<QFile>(logBase.arg(0));
|
||||
logFile->open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate);
|
||||
if(!logFile || !logFile->isOpen())
|
||||
{
|
||||
QTextStream(stderr) << "Couldn't open log file for writing: " << logBase.arg(0).toLocal8Bit();
|
||||
fflush(stderr);
|
||||
}
|
||||
}
|
||||
|
||||
void MultiMC::initGlobalSettings(bool test_mode)
|
||||
|
Loading…
Reference in New Issue
Block a user