summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp16
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)