]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/filelogger.cpp
Fix sqllog compile error
[user/henk/code/inspircd.git] / src / filelogger.cpp
index ff75e692309e8e067c00eff3bbedea87986d5a13..9e52f1ab5fb6ae174445edf0e684876a609bf6c0 100644 (file)
@@ -3,7 +3,7 @@
  *       +------------------------------------+
  *
  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
 #include "inspircd.h"
 #include <fstream>
 #include "socketengine.h"
-#include "inspircd_se_config.h"
 #include "filelogger.h"
 
-FileLogStream::FileLogStream(InspIRCd *Instance, int loglevel, FileWriter *fw)
-       : LogStream(Instance, loglevel), f(fw)
+FileLogStream::FileLogStream(int loglevel, FileWriter *fw)
+       : LogStream(loglevel), f(fw)
 {
        ServerInstance->Logs->AddLoggerRef(f);
 }
@@ -36,12 +35,7 @@ void FileLogStream::OnLog(int loglevel, const std::string &type, const std::stri
        static char TIMESTR[26];
        static time_t LAST = 0;
 
-       /* sanity check, just in case */
-       if (!ServerInstance->Config)
-               return;
-
-       /* If we were given -debug we output all messages, regardless of configured loglevel */
-       if ((loglevel < this->loglvl) && !ServerInstance->Config->forcedebug)
+       if (loglevel < this->loglvl)
        {
                return;
        }