from retail

diffchecked
This commit is contained in:
NoM0Re
2025-02-14 18:46:41 +01:00
parent 436041dd92
commit 290981ff25
22 changed files with 297 additions and 243 deletions
+5 -5
View File
@@ -56,7 +56,7 @@ function Private.DebugLog.Print(uid, text, ...)
end
if #log > 1000 then
Private.AuraWarnings.UpdateWarning(uid, "Debug_Log", "warning",
Private.AuraWarnings.UpdateWarning(uid, "Debug Log", "warning",
L["Debug Log contains more than 1000 entries"],
true)
end
@@ -73,8 +73,8 @@ function Private.DebugLog.Clear(uid)
AddMessage = AddMessage
}
-- Dance to clear a potential console message from the AuraWarnings
Private.AuraWarnings.UpdateWarning(uid, "Debug_Log", "info")
Private.AuraWarnings.UpdateWarning(uid, "Debug_Log", "info", L["Debug Logging enabled"])
Private.AuraWarnings.UpdateWarning(uid, "Debug Log", "info")
Private.AuraWarnings.UpdateWarning(uid, "Debug Log", "info", L["Debug Logging enabled"])
end
end
@@ -87,10 +87,10 @@ function Private.DebugLog.SetEnabled(uid, enable)
debugLogs[uid] = {
AddMessage = AddMessage
}
Private.AuraWarnings.UpdateWarning(uid, "Debug_Log", "info", L["Debug Logging enabled"])
Private.AuraWarnings.UpdateWarning(uid, "Debug Log", "info", L["Debug Logging enabled"])
else
debugLogs[uid] = nil
Private.AuraWarnings.UpdateWarning(uid, "Debug_Log", "info")
Private.AuraWarnings.UpdateWarning(uid, "Debug Log", "info")
end
end