mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
*Change some log level.
--HG-- branch : trunk
This commit is contained in:
@@ -1384,7 +1384,7 @@ bool Map::CheckGridIntegrity(Creature* c, bool moved) const
|
||||
Cell xy_cell(xy_val);
|
||||
if(xy_cell != cur_cell)
|
||||
{
|
||||
sLog.outError("ERROR: %s (GUID: %u) X: %f Y: %f (%s) in grid[%u,%u]cell[%u,%u] instead grid[%u,%u]cell[%u,%u]",
|
||||
sLog.outDebug("ERROR: %s (GUID: %u) X: %f Y: %f (%s) in grid[%u,%u]cell[%u,%u] instead grid[%u,%u]cell[%u,%u]",
|
||||
(c->GetTypeId()==TYPEID_PLAYER ? "Player" : "Creature"),c->GetGUIDLow(),
|
||||
c->GetPositionX(),c->GetPositionY(),(moved ? "final" : "original"),
|
||||
cur_cell.GridX(), cur_cell.GridY(), cur_cell.CellX(), cur_cell.CellY(),
|
||||
|
||||
@@ -172,6 +172,7 @@ bool SpellCastTargets::read ( WorldPacket * data, Unit *caster )
|
||||
return false;
|
||||
|
||||
*data >> m_targetMask;
|
||||
sLog.outDebug("Spell read, target mask = %u", m_targetMask);
|
||||
|
||||
if(m_targetMask == TARGET_FLAG_SELF)
|
||||
return true;
|
||||
@@ -230,6 +231,7 @@ bool SpellCastTargets::read ( WorldPacket * data, Unit *caster )
|
||||
void SpellCastTargets::write ( WorldPacket * data )
|
||||
{
|
||||
*data << uint32(m_targetMask);
|
||||
sLog.outDebug("Spell write, target mask = %u", m_targetMask);
|
||||
|
||||
if( m_targetMask & ( TARGET_FLAG_UNIT | TARGET_FLAG_PVP_CORPSE | TARGET_FLAG_OBJECT | TARGET_FLAG_CORPSE | TARGET_FLAG_UNK2 ) )
|
||||
{
|
||||
|
||||
@@ -1428,17 +1428,15 @@ void World::RecordTimeDiff(const char *text, ...)
|
||||
return;
|
||||
}
|
||||
|
||||
sLog.outDebugInLine("Difftime ");
|
||||
uint32 thisTime = getMSTime();
|
||||
|
||||
va_list ap;
|
||||
char str [256];
|
||||
va_start(ap, text);
|
||||
vsnprintf(str,256,text, ap );
|
||||
va_end(ap);
|
||||
sLog.outDebugInLine(str);
|
||||
sLog.outDetail("Difftime %s: %u.", str, getMSTimeDiff(m_currentTime, thisTime));
|
||||
|
||||
uint32 thisTime = getMSTime();
|
||||
sLog.outDebug(": %u.", getMSTimeDiff(m_currentTime, thisTime));
|
||||
m_currentTime = thisTime;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user