Quantcast

Make emergency debug mode more informative

James Whitehead II [11-22-10 - 19:09]
Make emergency debug mode more informative
Filename
AddonCore.lua
diff --git a/AddonCore.lua b/AddonCore.lua
index 548911f..af9b242 100644
--- a/AddonCore.lua
+++ b/AddonCore.lua
@@ -39,7 +39,9 @@ if EMERGENCY_DEBUG then
     setmetatable(addon, {
         __index = function(t, k)
             local value = rawget(private, k)
-            print(addonName, "INDEX", k, value)
+            if type(value) == "function" then
+                print("CALL", addonName .. "." .. tostring(k))
+            end
             return value
         end,
         __newindex = function(t, k, v)