Small fix to prevent unintended DB logging

--HG--
branch : trunk
This commit is contained in:
Chaz Brown
2009-05-04 11:39:43 -04:00
parent 6bee2f988a
commit 4403c50e53
2 changed files with 10 additions and 1 deletions
+3 -1
View File
@@ -403,6 +403,7 @@ int Master::Run()
/// Initialize connection to the databases
bool Master::_StartDB()
{
sLog.SetLogDB(false);
std::string dbstring;
///- Get world database info from configuration file
@@ -459,7 +460,7 @@ bool Master::_StartDB()
}
sLog.outString("Realm running as realm ID %d", realmID);
///- Initialize the DB logging system
///- Initialize the DB logging system
if(sConfig.GetBoolDefault("EnableLogDB", false))
{
// everything successful - set var to enable DB logging once startup finished.
@@ -471,6 +472,7 @@ bool Master::_StartDB()
{
sLog.SetLogDBLater(false);
sLog.SetLogDB(false);
sLog.SetRealmID(realmID);
}
///- Clean the database before starting