diff options
author | XTZGZoReX <none@none> | 2009-04-07 18:42:20 +0200 |
---|---|---|
committer | XTZGZoReX <none@none> | 2009-04-07 18:42:20 +0200 |
commit | 760e31b249807b513f5a847a29d8f9631d39f452 (patch) | |
tree | c758dba428909b4a15aab02a0939981644455539 /src/trinityrealm/Main.cpp | |
parent | c6b6a72956efdc10da8fac982db734b054984d08 (diff) |
* Ensure 100% that DB logging is enabled/disabled as expected.
--HG--
branch : trunk
Diffstat (limited to 'src/trinityrealm/Main.cpp')
-rw-r--r-- | src/trinityrealm/Main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/trinityrealm/Main.cpp b/src/trinityrealm/Main.cpp index bd318779f83..65596e35b21 100644 --- a/src/trinityrealm/Main.cpp +++ b/src/trinityrealm/Main.cpp @@ -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) |