comparison Modules/Debug.lua @ 22:66b7c3f5937e

I have removed the ability to show debug messages in the chat window and have replaced it with a new debug frame. /ia debug will show all of the debug messages and everything that IA has printed. This commit also has a small fix so that if you sell something for your exact cost you don't get a message that you made a profit of 0c.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Thu, 08 Jul 2010 19:30:30 -0700
parents 56de19d9bd8d
children 554b30908b33
comparison
equal deleted inserted replaced
21:d7f02c84994c 22:66b7c3f5937e
3 3
4 local utils = addonTable.utils 4 local utils = addonTable.utils
5 5
6 6
7 function addon:Debug(msg) 7 function addon:Debug(msg)
8 if self.db.profile.messages.debug then 8 self:Log(msg, " |cffffff00DEBUG")
9 self:Print(msg) 9 end
10 end 10
11 function addon:Log(message, prefix)
12 prefix = prefix or ""
13 ItemAuditor_DebugFrameTxt:AddMessage(format("%d%s|r: %s", time(), prefix, tostring(message)))
11 end 14 end
12 15
13 function addon:GetDebug(info) 16 function addon:GetDebug(info)
14 return self.db.profile.messages.debug 17 return self.db.profile.messages.debug
15 end 18 end