Add debug log from retail

This commit is contained in:
NoM0Re
2025-01-06 12:52:38 +01:00
parent 13ab335094
commit 873748218a
10 changed files with 309 additions and 4 deletions
+6
View File
@@ -1570,6 +1570,10 @@ function Private.LoadDisplays(toLoad, ...)
triggerState[id].show = false;
triggerState[id].activeTrigger = nil;
triggerState[id].activatedConditions = {};
if Private.DebugLog.IsEnabled(uid) then
WeakAuras.prettyPrint(L["Debug Logging enabled for '%s'"]:format(id))
Private.DebugLog.Print(uid, L["Aura loaded"])
end
end
for _, triggerSystem in pairs(triggerSystems) do
triggerSystem.LoadDisplays(toLoad, ...);
@@ -2554,6 +2558,8 @@ local function pAdd(data, simpleChange)
end
Private.UpdatedTriggerState(id)
else
Private.DebugLog.SetEnabled(data.uid, data.information.debugLog)
if (data.controlledChildren) then
Private.ClearAuraEnvironment(id);
for parent in Private.TraverseParents(data) do