]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Depreciated ServerInstance->Log() seems to crash configreader on rehash? We should...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 2 Apr 2008 19:17:34 +0000 (19:17 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 2 Apr 2008 19:17:34 +0000 (19:17 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9275 e03df62e-2008-0410-955e-edbf42e46eb7

src/configreader.cpp

index 2c5d01ee14f0f262686312b1ab800b1e6b5c16b0..df7721e826adfe0d4bc5ac327fc3c318d8b49c0e 100644 (file)
@@ -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);