diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2010-05-08 14:36:29 -0500 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2010-05-08 14:36:29 -0500 |
commit | dc3b56e53d52d3c082c412f0791d1cda8f068eef (patch) | |
tree | 375be940c84bfc1837352227bb8a369f3b5a614d /src | |
parent | f3dc5572200b4bce6b09448ac4660e2d889cb038 (diff) |
Compile testing can be useful
Diffstat (limited to 'src')
-rw-r--r-- | src/logger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index 41363b414..51f927104 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -53,7 +53,7 @@ LogManager::~LogManager() void LogManager::OpenFileLogs() { - if (Config->cmdline.forcedebug) + if (ServerInstance->Config->cmdline.forcedebug) { ServerInstance->Config->RawLog = true; return; @@ -124,7 +124,7 @@ void LogManager::OpenFileLogs() void LogManager::CloseLogs() { - if (Config->cmdline.forcedebug) + if (ServerInstance->Config->cmdline.forcedebug) return; std::map<std::string, std::vector<LogStream*> >().swap(LogStreams); /* Clear it */ std::map<LogStream*, std::vector<std::string> >().swap(GlobalLogStreams); /* Clear it */ |