diff options
author | Peter Powell <petpow@saberuk.com> | 2013-08-04 13:46:17 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2013-08-04 14:59:20 +0100 |
commit | cc1d8c1d57abc36effdc1e9383e4d7f5a3ea9ab0 (patch) | |
tree | 1136c86e37046d5717bbb9aea97ae558ef4adbe2 /src/filelogger.cpp | |
parent | 24623a5fe6ff986ad342e2b00d3576b4899a6033 (diff) |
Modify the log message to contain the log type.
Diffstat (limited to 'src/filelogger.cpp')
-rw-r--r-- | src/filelogger.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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"); } |