summaryrefslogtreecommitdiff
path: root/src/filelogger.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2013-08-04 07:08:41 -0700
committerAttila Molnar <attilamolnar@hush.com>2013-08-04 07:08:41 -0700
commit36f93c0e7f8a980943237b0b28138ade86f5e573 (patch)
tree1136c86e37046d5717bbb9aea97ae558ef4adbe2 /src/filelogger.cpp
parent38eb845f7a98a3140adcdc108abf2adab82b87c0 (diff)
parentcc1d8c1d57abc36effdc1e9383e4d7f5a3ea9ab0 (diff)
Merge pull request #590 from SaberUK/master+module-logging
Change modules to use the MODNAME constant.
Diffstat (limited to 'src/filelogger.cpp')
-rw-r--r--src/filelogger.cpp6
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");
}