diff options
| author | 2013-04-19 07:10:27 +0100 | |
|---|---|---|
| committer | 2013-05-19 17:11:53 +0100 | |
| commit | 5ad9b97fcff193ebce91a923c5006632501abf97 (patch) | |
| tree | 612c461328d494cf009119c2d236b3c1d3e15242 /src/helperfuncs.cpp | |
| parent | Move LogHeader to LogStream. (diff) | |
| download | inspircd++-5ad9b97fcff193ebce91a923c5006632501abf97.tar.gz inspircd++-5ad9b97fcff193ebce91a923c5006632501abf97.tar.bz2 inspircd++-5ad9b97fcff193ebce91a923c5006632501abf97.zip | |
Purge a ton of code related to non <log> related logging.
- InspIRCd::OpenLog
- ./inspircd --logfile [file]
This is no longer needed now we have (since 1.2) custom logging.
Diffstat (limited to 'src/helperfuncs.cpp')
| -rw-r--r-- | src/helperfuncs.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
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 |
