diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-06-18 21:20:30 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-06-18 21:20:30 +0200 |
commit | e0cb6bd46fb1d804ad6adea5688c844f7e1a0f6f (patch) | |
tree | d473dbb70877a847a542e2c6e889c031632b1a8c /src/logger.cpp | |
parent | 9b91781b0fafba1eb2000baa0a08ece8d48eac31 (diff) |
Minor changes to the startup and shutdown code
- Update comments
- Close logs in LogManager destructor instead of relying on other code to do it
- Change return type of InspIRCd::Run() to void
- private: InspIRCd::CheckRoot()
- Change log message type of setgroups() etc. errors to "STARTUP"
- Load cmd_privmsg in PURE_STATIC builds
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index 03960f4a1..564f0fdac 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -55,12 +55,13 @@ const char LogStream::LogHeader[] = " - compiled on " SYSTEM; LogManager::LogManager() + : Logging(false) { - Logging = false; } LogManager::~LogManager() { + CloseLogs(); } void LogManager::OpenFileLogs() |