From cc1d8c1d57abc36effdc1e9383e4d7f5a3ea9ab0 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 4 Aug 2013 13:46:17 +0100 Subject: Modify the log message to contain the log type. --- src/filelogger.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/filelogger.cpp') diff --git a/src/filelogger.cpp b/src/filelogger.cpp index f0a6308bc..fff0b37fa 100644 --- a/src/filelogger.cpp +++ b/src/filelogger.cpp @@ -51,12 +51,8 @@ void FileLogStream::OnLog(LogLevel loglevel, const std::string &type, const std: struct tm *timeinfo = localtime(&local); TIMESTR.assign(asctime(timeinfo), 24); - TIMESTR += ": "; LAST = ServerInstance->Time(); } - std::string out = TIMESTR; - out += text; - out += '\n'; - this->f->WriteLogLine(out); + this->f->WriteLogLine(TIMESTR + " " + type + ": " + text + "\n"); } -- cgit v1.2.3