diff options
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index be28bf836..19e07e78f 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -42,6 +42,22 @@ * */ +LogManager::LogManager() +{ + noforkstream = NULL; + Logging = false; +} + +LogManager::~LogManager() +{ + if (noforkstream) + { + ServerInstance->Logs = this; + delete noforkstream; + ServerInstance->Logs = NULL; + } +} + void LogManager::SetupNoFork() { if (!noforkstream) |