summaryrefslogtreecommitdiffstats
path: root/application/MultiMC.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-10-27 13:40:53 +0200
committerPetr Mrázek <peterix@gmail.com>2016-10-27 13:40:53 +0200
commit049317093629f9a24ccec93df4449ce44b83c35e (patch)
treed7c72ab24d15b73ba5f063d5fb2aa23b1f9fb1bf /application/MultiMC.cpp
parent2597bde4f9df5409371da55beabb0f695b853aa3 (diff)
downloadMultiMC-049317093629f9a24ccec93df4449ce44b83c35e.tar
MultiMC-049317093629f9a24ccec93df4449ce44b83c35e.tar.gz
MultiMC-049317093629f9a24ccec93df4449ce44b83c35e.tar.lz
MultiMC-049317093629f9a24ccec93df4449ce44b83c35e.tar.xz
MultiMC-049317093629f9a24ccec93df4449ce44b83c35e.zip
GH-1665 diagnostic build - disable file logging entirely
Diffstat (limited to 'application/MultiMC.cpp')
-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);