summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
Diffstat (limited to 'application')
-rw-r--r--application/MultiMC.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp
index 0911fcc2..7b4635f1 100644
--- a/application/MultiMC.cpp
+++ b/application/MultiMC.cpp
@@ -429,11 +429,13 @@ 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();
}
+ */
QTextStream(stderr) << out.toLocal8Bit();
fflush(stderr);
}
@@ -451,7 +453,7 @@ void MultiMC::initLogger()
logFile = std::make_shared<QFile>(logBase.arg(0));
logFile->open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate);
- if(!logFile || !logFile->isOpen())
+ if(!logFile->isOpen())
{
QTextStream(stderr) << "Couldn't open log file for writing: " << logBase.arg(0).toLocal8Bit();
fflush(stderr);