aboutsummaryrefslogtreecommitdiff
path: root/src/trinitycore/Master.cpp
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2009-04-07 18:42:20 +0200
committerXTZGZoReX <none@none>2009-04-07 18:42:20 +0200
commit760e31b249807b513f5a847a29d8f9631d39f452 (patch)
treec758dba428909b4a15aab02a0939981644455539 /src/trinitycore/Master.cpp
parentc6b6a72956efdc10da8fac982db734b054984d08 (diff)
* Ensure 100% that DB logging is enabled/disabled as expected.
--HG-- branch : trunk
Diffstat (limited to 'src/trinitycore/Master.cpp')
-rw-r--r--src/trinitycore/Master.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/trinitycore/Master.cpp b/src/trinitycore/Master.cpp
index a92ac0584f5..339ca2d1662 100644
--- a/src/trinitycore/Master.cpp
+++ b/src/trinitycore/Master.cpp
@@ -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();