From 5ab64dc1b6ee8aea8d11453b46a2655d04a26ad2 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 22 Oct 2014 21:53:27 +0200 Subject: [PATCH] Style fixes in Logger. --- src/libtomahawk/utils/Logger.cpp | 34 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/libtomahawk/utils/Logger.cpp b/src/libtomahawk/utils/Logger.cpp index 832ba8340..80b01236f 100644 --- a/src/libtomahawk/utils/Logger.cpp +++ b/src/libtomahawk/utils/Logger.cpp @@ -83,21 +83,21 @@ log( const char *msg, unsigned int debugLevel, bool toDisk = true ) { // Do not use locales anymore in shutdown logStream << QDate::currentDate().day() << "." - << QDate::currentDate().month() << "." - << QDate::currentDate().year() << " - " - << QTime::currentTime().hour() << ":" - << QTime::currentTime().minute() << ":" - << QTime::currentTime().second() - << " [" << QString::number( debugLevel ).toUtf8().data() << "]: " - << msg << endl; + << QDate::currentDate().month() << "." + << QDate::currentDate().year() << " - " + << QTime::currentTime().hour() << ":" + << QTime::currentTime().minute() << ":" + << QTime::currentTime().second() + << " [" << QString::number( debugLevel ).toUtf8().data() << "]: " + << msg << endl; } else { logStream << QDate::currentDate().toString().toUtf8().data() - << " - " - << QTime::currentTime().toString().toUtf8().data() - << " [" << QString::number( debugLevel ).toUtf8().data() << "]: " - << msg << endl; + << " - " + << QTime::currentTime().toString().toUtf8().data() + << " [" << QString::number( debugLevel ).toUtf8().data() << "]: " + << msg << endl; } logStream.flush(); @@ -110,16 +110,16 @@ log( const char *msg, unsigned int debugLevel, bool toDisk = true ) if ( shutdownInProgress ) { wcout << QTime::currentTime().hour() << ":" - << QTime::currentTime().minute() << ":" - << QTime::currentTime().second() - << " [" << QString::number( debugLevel ).toStdWString().c_str() << "]: " - << msg << endl; + << QTime::currentTime().minute() << ":" + << QTime::currentTime().second() + << " [" << QString::number( debugLevel ).toStdWString().c_str() << "]: " + << msg << endl; } else { wcout << QTime::currentTime().toString().toUtf8().data() - << " [" << QString::number( debugLevel ).toStdWString().c_str() << "]: " - << msg << endl; + << " [" << QString::number( debugLevel ).toStdWString().c_str() << "]: " + << msg << endl; } wcout.flush();