mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-16 04:49:38 -04:00
Core/Log: Implement log masks for debug log level, to allow selective debug output. Update your worldserver.conf.
This commit is contained in:
@@ -391,12 +391,12 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
sLog->outDebug("Sending opcode: unknown type '%s'", type.c_str());
|
||||
sLog->outError("Sending opcode: unknown type '%s'", type.c_str());
|
||||
break;
|
||||
}
|
||||
}
|
||||
ifs.close();
|
||||
sLog->outDebug("Sending opcode %u", data.GetOpcode());
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "Sending opcode %u", data.GetOpcode());
|
||||
data.hexlike();
|
||||
player->GetSession()->SendPacket(&data);
|
||||
handler->PSendSysMessage(LANG_COMMAND_OPCODESENT, data.GetOpcode(), unit->GetName());
|
||||
@@ -1053,14 +1053,12 @@ public:
|
||||
if (isint32)
|
||||
{
|
||||
iValue = (uint32)atoi(py);
|
||||
sLog->outDebug(handler->GetTrinityString(LANG_SET_UINT), GUID_LOPART(guid), Opcode, iValue);
|
||||
target->SetUInt32Value(Opcode , iValue);
|
||||
handler->PSendSysMessage(LANG_SET_UINT_FIELD, GUID_LOPART(guid), Opcode,iValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
fValue = (float)atof(py);
|
||||
sLog->outDebug(handler->GetTrinityString(LANG_SET_FLOAT), GUID_LOPART(guid), Opcode, fValue);
|
||||
target->SetFloatValue(Opcode , fValue);
|
||||
handler->PSendSysMessage(LANG_SET_FLOAT_FIELD, GUID_LOPART(guid), Opcode,fValue);
|
||||
}
|
||||
@@ -1104,13 +1102,11 @@ public:
|
||||
if (isint32)
|
||||
{
|
||||
iValue = target->GetUInt32Value(Opcode);
|
||||
sLog->outDebug(handler->GetTrinityString(LANG_GET_UINT), GUID_LOPART(guid), Opcode, iValue);
|
||||
handler->PSendSysMessage(LANG_GET_UINT_FIELD, GUID_LOPART(guid), Opcode, iValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
fValue = target->GetFloatValue(Opcode);
|
||||
sLog->outDebug(handler->GetTrinityString(LANG_GET_FLOAT), GUID_LOPART(guid), Opcode, fValue);
|
||||
handler->PSendSysMessage(LANG_GET_FLOAT_FIELD, GUID_LOPART(guid), Opcode, fValue);
|
||||
}
|
||||
|
||||
@@ -1137,8 +1133,6 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
sLog->outDebug(handler->GetTrinityString(LANG_CHANGE_32BIT), Opcode, Value);
|
||||
|
||||
int CurrentValue = (int)handler->GetSession()->GetPlayer()->GetUInt32Value(Opcode);
|
||||
|
||||
CurrentValue += Value;
|
||||
@@ -1223,8 +1217,6 @@ public:
|
||||
if (Value > 32) //uint32 = 32 bits
|
||||
return false;
|
||||
|
||||
sLog->outDebug(handler->GetTrinityString(LANG_SET_32BIT), Opcode, Value);
|
||||
|
||||
uint32 iValue = Value ? 1 << (Value - 1) : 0;
|
||||
target->SetUInt32Value(Opcode , iValue);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user