summaryrefslogtreecommitdiff
path: root/src/filelogger.cpp
diff options
context:
space:
mode:
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");
}