* Ensure 100% that DB logging is enabled/disabled as expected.
--HG-- branch : trunk
This commit is contained in:
@@ -1535,6 +1535,7 @@ void World::SetInitialWorldSettings()
|
||||
}
|
||||
else
|
||||
{
|
||||
sLog.SetLogDB(false);
|
||||
sLog.SetLogDBLater(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -464,8 +464,14 @@ bool Master::_StartDB()
|
||||
{
|
||||
// everything successful - set var to enable DB logging once startup finished.
|
||||
sLog.SetLogDBLater(true);
|
||||
sLog.SetLogDB(false);
|
||||
sLog.SetRealmID(realmID);
|
||||
}
|
||||
else
|
||||
{
|
||||
sLog.SetLogDBLater(false);
|
||||
sLog.SetLogDB(false);
|
||||
}
|
||||
|
||||
///- Clean the database before starting
|
||||
clearOnlineAccounts();
|
||||
|
||||
@@ -187,6 +187,7 @@ extern int main(int argc, char **argv)
|
||||
{
|
||||
// everything successful - set var to enable DB logging once startup finished.
|
||||
sLog.SetLogDBLater(true);
|
||||
sLog.SetLogDB(false);
|
||||
// ensure we've set realm to 0 (realmd realmid)
|
||||
sLog.SetRealmID(0);
|
||||
}
|
||||
@@ -271,6 +272,11 @@ extern int main(int argc, char **argv)
|
||||
// login db needs thread for logging
|
||||
sLog.SetLogDB(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
sLog.SetLogDB(false);
|
||||
sLog.SetLogDBLater(false);
|
||||
}
|
||||
|
||||
///- Wait for termination signal
|
||||
while (!stopEvent)
|
||||
|
||||
Reference in New Issue
Block a user