Logging rewrite (#1519)

This commit is contained in:
namreeb
2022-10-06 03:34:56 -10:00
committed by GitHub
parent bd8c31f51a
commit dfb90c5880
225 changed files with 4841 additions and 5316 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ bool DynamicObject::Create(uint32 guidlow, WorldObject* caster, uint32 spellId,
if (!IsPositionValid())
{
sLog.outError("DynamicObject (spell %u eff %u) not created. Suggested coordinates isn't valid (X: %f Y: %f)", spellId, effIndex, GetPositionX(), GetPositionY());
sLog.Out(LOG_BASIC, LOG_LVL_ERROR, "DynamicObject (spell %u eff %u) not created. Suggested coordinates isn't valid (X: %f Y: %f)", spellId, effIndex, GetPositionX(), GetPositionY());
return false;
}
@@ -107,7 +107,7 @@ bool DynamicObject::Create(uint32 guidlow, WorldObject* caster, uint32 spellId,
SpellEntry const* spellProto = sSpellMgr.GetSpellEntry(spellId);
if (!spellProto)
{
sLog.outError("DynamicObject (spell %u) not created. Spell not exist!", spellId, GetPositionX(), GetPositionY());
sLog.Out(LOG_BASIC, LOG_LVL_ERROR, "DynamicObject (spell %u) not created. Spell not exist!", spellId, GetPositionX(), GetPositionY());
return false;
}