From b1806589625beb5f189f7fe675073f5aa105f814 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 19 Apr 2013 10:26:54 +0100 Subject: Accept a LogLevel instead of an int in logging methods. --- src/filelogger.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/filelogger.cpp') diff --git a/src/filelogger.cpp b/src/filelogger.cpp index 245cbbaab..acb210ecb 100644 --- a/src/filelogger.cpp +++ b/src/filelogger.cpp @@ -26,8 +26,7 @@ #include "socketengine.h" #include "filelogger.h" -FileLogStream::FileLogStream(int loglevel, FileWriter *fw) - : LogStream(loglevel), f(fw) +FileLogStream::FileLogStream(LogLevel loglevel, FileWriter *fw) : LogStream(loglevel), f(fw) { ServerInstance->Logs->AddLoggerRef(f); } @@ -38,7 +37,7 @@ FileLogStream::~FileLogStream() ServerInstance->Logs->DelLoggerRef(f); } -void FileLogStream::OnLog(int loglevel, const std::string &type, const std::string &text) +void FileLogStream::OnLog(LogLevel loglevel, const std::string &type, const std::string &text) { static std::string TIMESTR; static time_t LAST = 0; -- cgit v1.2.3