summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-10-27 17:00:37 +0200
committerPetr Mrázek <peterix@gmail.com>2016-10-27 17:00:37 +0200
commit3d94fb8d24c6012d5d1cdee61c99e62847c06ad9 (patch)
treecd02a5c6a2398b09fdac58e648bdac60ba5f8d63 /application
parent2c2c1b0a17ae312bbd201bcf1b7e2e6592dd9d42 (diff)
downloadMultiMC-3d94fb8d24c6012d5d1cdee61c99e62847c06ad9.tar
MultiMC-3d94fb8d24c6012d5d1cdee61c99e62847c06ad9.tar.gz
MultiMC-3d94fb8d24c6012d5d1cdee61c99e62847c06ad9.tar.lz
MultiMC-3d94fb8d24c6012d5d1cdee61c99e62847c06ad9.tar.xz
MultiMC-3d94fb8d24c6012d5d1cdee61c99e62847c06ad9.zip
Revert "GH-1665 diagnostic build - check if log file has been created and opened"
This reverts commit 2597bde4f9df5409371da55beabb0f695b853aa3.
Diffstat (limited to 'application')
-rw-r--r--application/MultiMC.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp
index 0911fcc2..a226f3b7 100644
--- a/application/MultiMC.cpp
+++ b/application/MultiMC.cpp
@@ -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)