summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-04-19 07:10:27 +0100
committerPeter Powell <petpow@saberuk.com>2013-05-19 17:11:53 +0100
commit5ad9b97fcff193ebce91a923c5006632501abf97 (patch)
tree612c461328d494cf009119c2d236b3c1d3e15242 /src/helperfuncs.cpp
parentad0828aa6431021df45563d34de9976b2d303098 (diff)
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.cpp22
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