void LogManager::OpenFileLogs()
{
+ if (ServerInstance->Config->cmdline.forcedebug)
+ {
+ ServerInstance->Config->RawLog = true;
+ return;
+ }
/* Skip rest of logfile opening if we are running -nolog. */
if (!ServerInstance->Config->cmdline.writelog)
return;
fw = fwi->second;
}
FileLogStream* fls = new FileLogStream(loglevel, fw);
+ fls->OnLog(SPARSE, "HEADER", InspIRCd::LogHeader);
AddLogTypes(type, fls, true);
}
}
void LogManager::CloseLogs()
{
+ if (ServerInstance->Config && ServerInstance->Config->cmdline.forcedebug)
+ return;
std::map<std::string, std::vector<LogStream*> >().swap(LogStreams); /* Clear it */
std::map<LogStream*, std::vector<std::string> >().swap(GlobalLogStreams); /* Clear it */
for (std::map<LogStream*, int>::iterator i = AllLogStreams.begin(); i != AllLogStreams.end(); ++i)