aboutsummaryrefslogtreecommitdiff
path: root/src/trinityrealm/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trinityrealm/Main.cpp')
-rw-r--r--src/trinityrealm/Main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/trinityrealm/Main.cpp b/src/trinityrealm/Main.cpp
index 65596e35b21..cbadd4d1e4c 100644
--- a/src/trinityrealm/Main.cpp
+++ b/src/trinityrealm/Main.cpp
@@ -83,6 +83,7 @@ void usage(const char *prog)
/// Launch the realm server
extern int main(int argc, char **argv)
{
+ sLog.SetLogDB(false);
///- Command line parsing to get the configuration file name
char const* cfg_file = _TRINITY_REALM_CONFIG;
int c=1;
@@ -191,6 +192,12 @@ extern int main(int argc, char **argv)
// ensure we've set realm to 0 (realmd realmid)
sLog.SetRealmID(0);
}
+ else
+ {
+ sLog.SetLogDBLater(false);
+ sLog.SetLogDB(false);
+ sLog.SetRealmID(0);
+ }
///- Get the list of realms for the server
m_realmList.Initialize(sConfig.GetIntDefault("RealmsStateUpdateDelay", 20));