Quantcast

Move debugging statement to less verbose location.

Johnny C. Lam [12-05-13 - 08:18]
Move debugging statement to less verbose location.

RemoveAurasOnGUID() is used in multiple places, sometimes just for
clean-up, but we only care about when they are removed if it's for an
inactive unit.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1234 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleAura.lua
diff --git a/OvaleAura.lua b/OvaleAura.lua
index 3c71d1a..5c8109d 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -183,7 +183,6 @@ end

 local function RemoveAurasOnGUID(auraDB, guid)
 	if auraDB[guid] then
-		Ovale:DebugPrintf(OVALE_AURA_DEBUG, "Removing auras from guid %s", guid)
 		local auraTable = auraDB[guid]
 		for auraId, whoseTable in pairs(auraTable) do
 			for casterGUID, aura in pairs(whoseTable) do
@@ -299,6 +298,7 @@ function OvaleAura:RemoveAurasOnInactiveUnits()
 	for guid in pairs(self_aura) do
 		local unitId = OvaleGUID:GetUnitId(guid)
 		if not unitId then
+			Ovale:DebugPrintf(OVALE_AURA_DEBUG, "Removing auras from guid %s", guid)
 			RemoveAurasOnGUID(self_aura, guid)
 			self_serial[guid] = nil
 		end