From 5ad9b97fcff193ebce91a923c5006632501abf97 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 19 Apr 2013 07:10:27 +0100 Subject: Purge a ton of code related to non related logging. - InspIRCd::OpenLog - ./inspircd --logfile [file] This is no longer needed now we have (since 1.2) custom logging. --- src/helperfuncs.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/helperfuncs.cpp') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index d11a13aa0..ab2ed5682 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -325,28 +325,6 @@ bool InspIRCd::IsSID(const std::string &str) ((str[2] >= 'A' && str[2] <= 'Z') || isdigit(str[2]))); } -/* open the proper logfile */ -bool InspIRCd::OpenLog(char**, int) -{ - if (!Config->cmdline.writelog) return true; // Skip opening default log if -nolog - - if (Config->cmdline.startup_log.empty()) - Config->cmdline.startup_log = LOG_PATH "/startup.log"; - FILE* startup = fopen(Config->cmdline.startup_log.c_str(), "a+"); - - if (!startup) - { - return false; - } - - FileWriter* fw = new FileWriter(startup); - FileLogStream *f = new FileLogStream((Config->cmdline.forcedebug ? LOG_DEBUG : LOG_DEFAULT), fw); - - this->Logs->AddLogType("*", f, true); - - return true; -} - void InspIRCd::CheckRoot() { #ifndef _WIN32 -- cgit v1.2.3