aboutsummaryrefslogtreecommitdiff
path: root/src/trinitycore/Master.cpp
diff options
context:
space:
mode:
authorChaz Brown <iamparadox@netscape.net>2009-05-04 11:39:43 -0400
committerChaz Brown <iamparadox@netscape.net>2009-05-04 11:39:43 -0400
commit4403c50e532ac15b576fad5f4cb455d2888ace27 (patch)
treee71d2132c7553c3d268e75caf69243b53f2c5884 /src/trinitycore/Master.cpp
parent6bee2f988af8da474ecebe776e61768bcc730f46 (diff)
Small fix to prevent unintended DB logging
--HG-- branch : trunk
Diffstat (limited to 'src/trinitycore/Master.cpp')
-rw-r--r--src/trinitycore/Master.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/trinitycore/Master.cpp b/src/trinitycore/Master.cpp
index a478f18daa9..6a952b936d3 100644
--- a/src/trinitycore/Master.cpp
+++ b/src/trinitycore/Master.cpp
@@ -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