summaryrefslogtreecommitdiff
path: root/src/filelogger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filelogger.cpp')
-rw-r--r--src/filelogger.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/filelogger.cpp b/src/filelogger.cpp
index f442b8b7a..9e52f1ab5 100644
--- a/src/filelogger.cpp
+++ b/src/filelogger.cpp
@@ -35,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;
}