diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/logger.cpp | 6 | ||||
-rw-r--r-- | src/server.cpp | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index b33f65ac4..bc1dd3253 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -51,6 +51,10 @@ * */ +const char LogStream::LogHeader[] = + "Log started for " VERSION " (" REVISION ", " MODULE_INIT_STR ")" + " - compiled on " SYSTEM; + LogManager::LogManager() { Logging = false; @@ -126,7 +130,7 @@ void LogManager::OpenFileLogs() fw = fwi->second; } FileLogStream* fls = new FileLogStream(loglevel, fw); - fls->OnLog(LOG_SPARSE, "HEADER", InspIRCd::LogHeader); + fls->OnLog(LOG_SPARSE, "HEADER", LogStream::LogHeader); AddLogTypes(type, fls, true); } } diff --git a/src/server.cpp b/src/server.cpp index 2e6109202..66b175a1a 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -73,11 +73,6 @@ std::string InspIRCd::GetVersionString(bool getFullVersion) return BRANCH " " + Config->ServerName + " :" + Config->CustomVersion; } -const char InspIRCd::LogHeader[] = - "Log started for " VERSION " (" REVISION ", " MODULE_INIT_STR ")" - " - compiled on " SYSTEM; - - std::string UIDGenerator::GenerateSID(const std::string& servername, const std::string& serverdesc) { unsigned int sid = 0; |