summaryrefslogtreecommitdiffstats
path: root/logger/QsLog.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-10-06 03:07:57 +0200
committerPetr Mrázek <peterix@gmail.com>2013-10-06 03:07:57 +0200
commit8b18af051585108a65a01347d333ce79e2e82d23 (patch)
tree4d41019c47556fbe26a8f0cdc0f4d0abd82dbe77 /logger/QsLog.cpp
parent9cef16a47d8e6085baec08c4b2823631ef8f1b30 (diff)
downloadMultiMC-8b18af051585108a65a01347d333ce79e2e82d23.tar
MultiMC-8b18af051585108a65a01347d333ce79e2e82d23.tar.gz
MultiMC-8b18af051585108a65a01347d333ce79e2e82d23.tar.lz
MultiMC-8b18af051585108a65a01347d333ce79e2e82d23.tar.xz
MultiMC-8b18af051585108a65a01347d333ce79e2e82d23.zip
Get rid of junky timestamps, along with some select pointless log messages
Diffstat (limited to 'logger/QsLog.cpp')
-rw-r--r--logger/QsLog.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/logger/QsLog.cpp b/logger/QsLog.cpp
index b2a7f465..8cf68a53 100644
--- a/logger/QsLog.cpp
+++ b/logger/QsLog.cpp
@@ -56,13 +56,12 @@ static const char *LevelToText(Level theLevel)
class LoggerImpl
{
public:
- LoggerImpl() : level(InfoLevel), start_time(QDateTime::currentDateTime())
+ LoggerImpl() : level(InfoLevel)
{
}
QMutex logMutex;
Level level;
DestinationList destList;
- QDateTime start_time;
};
Logger::Logger() : d(new LoggerImpl)
@@ -94,10 +93,7 @@ Level Logger::loggingLevel() const
void Logger::Helper::writeToLog()
{
const char *const levelName = LevelToText(level);
- const QString completeMessage(QString("%1\t%2\t%3")
- .arg(QDateTime::currentDateTime().toString(fmtDateTime))
- .arg(levelName, 5)
- .arg(buffer));
+ const QString completeMessage(QString("%1\t%2").arg(levelName, 5).arg(buffer));
Logger &logger = Logger::instance();
QMutexLocker lock(&logger.d->logMutex);