Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . inspircd (2.0.17-3) unstable; urgency=low . * add log close/open Author: Michael Vogt --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: https://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- a/src/server.cpp +++ b/src/server.cpp @@ -61,6 +61,10 @@ ServerInstance->SNO->WriteToSnoMask('a', "Rehashing config file %s %s",ServerConfig::CleanFilename(ServerInstance->ConfigFileName.c_str()), reason.c_str()); ServerInstance->RehashUsersAndChans(); FOREACH_MOD(I_OnGarbageCollect, OnGarbageCollect()); + + ServerInstance->Logs->CloseLogs(); + ServerInstance->Logs->OpenFileLogs(); + if (!ServerInstance->ConfigThread) { ServerInstance->ConfigThread = new ConfigReaderThread(""); --- a/src/logger.cpp +++ b/src/logger.cpp @@ -142,6 +142,7 @@ delete i->first; } std::map().swap(AllLogStreams); /* And clear it */ + FileLogMap().swap(FileLogs); /* And clear it */ } void LogManager::AddLogTypes(const std::string &types, LogStream* l, bool autoclose)