aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Log.cpp
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2009-03-26 16:46:08 +0100
committerXTZGZoReX <none@none>2009-03-26 16:46:08 +0100
commit0952469d69536b00cb58167970d6cff646e7ccaf (patch)
tree1e02cb6e2cb49186c043d90a92d73310884f8df5 /src/shared/Log.cpp
parent0da5f826b8d46ff8249347c1386d347b3cc7d2df (diff)
* Fix some conversion in DB logging.
--HG-- branch : trunk
Diffstat (limited to 'src/shared/Log.cpp')
-rw-r--r--src/shared/Log.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp
index e79ea12933d..2603069a461 100644
--- a/src/shared/Log.cpp
+++ b/src/shared/Log.cpp
@@ -91,12 +91,15 @@ void Log::SetDBLogLevel(char *Level)
void Log::Initialize()
{
- /// Check whether we'll log GM commands/RA events/character outputs
+ /// Check whether we'll log GM commands/RA events/character outputs/chat stuffs
m_dbChar = sConfig.GetBoolDefault("LogDB.Char", false);
m_dbRA = sConfig.GetBoolDefault("LogDB.RA", false);
m_dbGM = sConfig.GetBoolDefault("LogDB.GM", false);
m_dbChat = sConfig.GetBoolDefault("LogDB.Chat", false);
+ /// Realm must be 0 by default
+ SetRealmID(0);
+
/// Common log files data
m_logsDir = sConfig.GetStringDefault("LogsDir","");
if(!m_logsDir.empty())
@@ -337,9 +340,9 @@ std::string Log::GetTimestampStr()
return std::string(buf);
}
-void Log::outDB( uint8 type, const char * str, ... )
+void Log::outDB( uint32 type, const char * str, ... )
{
- if(!type)
+ if(type >= MAX_LOG_TYPES)
return;
if(!str)