summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-02 19:17:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-02 19:17:34 +0000
commit0ba0beb0c465cd7bfbd98b6f51429d3147c362eb (patch)
tree6ed766e896889fde358cb336fca04a99c532bd4d /src/configreader.cpp
parent9543f33d3cb292f51997bce38b789ab3f690d03e (diff)
Depreciated ServerInstance->Log() seems to crash configreader on rehash? We should remove the depreciated calls anyway, so im not too concerned as to why they crash - probably not threadsafe.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9275 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 2c5d01ee1..df7721e82 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -1145,12 +1145,12 @@ void ServerConfig::Read(bool bail, User* user)
// write once here, to try it out and make sure its ok
ServerInstance->WritePID(this->PID);
- ServerInstance->Log(DEFAULT,"Done reading configuration file.");
-
/* Switch over logfiles */
ServerInstance->Logs->CloseLogs();
ServerInstance->Logs->OpenFileLogs();
+ ServerInstance->Logs->Log("CONFIG", DEFAULT, "Done reading configuration file.");
+
/* If we're rehashing, let's load any new modules, and unload old ones
*/
if (!bail)
@@ -1215,7 +1215,7 @@ void ServerConfig::Read(bool bail, User* user)
}
}
- ServerInstance->Log(DEFAULT,"Successfully unloaded %lu of %lu modules and loaded %lu of %lu modules.",(unsigned long)rem,(unsigned long)removed_modules.size(),(unsigned long)add,(unsigned long)added_modules.size());
+ ServerInstance->Logs->Log("CONFIG", DEFAULT, "Successfully unloaded %lu of %lu modules and loaded %lu of %lu modules.",(unsigned long)rem,(unsigned long)removed_modules.size(),(unsigned long)add,(unsigned long)added_modules.size());
ServerInstance->Threads->Mutex(false);