diff 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
line wrap: on
line diff
--- a/Modules/Debug.lua	Tue Jul 06 23:48:54 2010 -0700
+++ b/Modules/Debug.lua	Thu Jul 08 19:30:30 2010 -0700
@@ -5,9 +5,12 @@
 
 
 function addon:Debug(msg)
-	if self.db.profile.messages.debug then
-		self:Print(msg)
-	end
+	self:Log(msg, " |cffffff00DEBUG")
+end
+
+function addon:Log(message, prefix)
+	prefix = prefix or ""
+	ItemAuditor_DebugFrameTxt:AddMessage(format("%d%s|r: %s", time(), prefix, tostring(message)))
 end
 
 function addon:GetDebug(info)