Quantcast

Removed chatty debugging messages.

Paul Schifferer [12-18-10 - 16:57]
Removed chatty debugging messages.
Filename
CauldronMain.lua
CauldronMain.xml
CauldronMainUI.lua
CauldronTradeskill.lua
diff --git a/CauldronMain.lua b/CauldronMain.lua
index dd037a9..9c5671f 100644
--- a/CauldronMain.lua
+++ b/CauldronMain.lua
@@ -24,7 +24,8 @@ Cauldron.vars = {
 	enabled = true,
 	showQueue = true,
 	inventory = {},
-	filterVersion = 300, -- TODO: @project-revision@,
+	filterVersion = tonumber("@project-revision@") or 300,
+	displayTimers = false,
 };

 Cauldron.libs = {};
@@ -418,7 +419,7 @@ end
 --]]

 function Cauldron:OnSkillUpdate(event)
-Cauldron:info("skill update: event="..tostring(event));
+--Cauldron:info("skill update: event="..tostring(event));

 --[[
 	if CURRENT_TRADESKILL ~= "" then
diff --git a/CauldronMain.xml b/CauldronMain.xml
index 7fc6701..5e065e0 100755
--- a/CauldronMain.xml
+++ b/CauldronMain.xml
@@ -218,7 +218,6 @@
 					<OnClick>
 						PlaySound("igMainMenuOptionCheckBoxOn");
 						Cauldron:FavoriteItemButton_OnClick(self);
-						Cauldron:info("updating skill list from favorites selection");
 						Cauldron:UpdateSkillList();
 					</OnClick>
 				</Scripts>
diff --git a/CauldronMainUI.lua b/CauldronMainUI.lua
index 1a9964a..ccf6d53 100644
--- a/CauldronMainUI.lua
+++ b/CauldronMainUI.lua
@@ -632,8 +632,10 @@ function Cauldron:UpdateSkillList()
 	end

 	local endTime = GetTime();
-	Cauldron:info("draw skill list: "..tostring(endTime-startTime).."ms");
-
+	if Cauldron.vars.displayTimers then
+		Cauldron:info("draw skill list: "..tostring(endTime-startTime).."ms");
+	end
+
 	Cauldron.updatingSkillList = false;

 end
@@ -1936,7 +1938,7 @@ function Cauldron:FilterDropDown_SetSlot(slot)
 		skillName = "Guild-"..skillName;
 	end

-	Cauldron:info("set slot: "..tostring(slot));
+--	Cauldron:info("set slot: "..tostring(slot));

 	local slotInfo = Cauldron.db.realm.userdata[Cauldron.vars.playername].skills[skillName].window.slots[slot];
 	if not slotInfo then
@@ -1962,7 +1964,7 @@ function Cauldron:FilterDropDown_SetSubclass(subclass, subslot)
 		skillName = "Guild-"..skillName;
 	end

-	Cauldron:info("set subclass: "..tostring(subclass)..", subslot: "..tostring(subslot));
+--	Cauldron:info("set subclass: "..tostring(subclass)..", subslot: "..tostring(subslot));

 	-- handle "special" sub-classes
 	if subclass == "all" or subclass == "none" then
@@ -2008,7 +2010,7 @@ function Cauldron:FilterDropDown_SetSubclass(subclass, subslot)
 	if subslot ~= "" then
 		catName = subclass..";"..subslot;
 	end
-	Cauldron:info("catName: "..catName);
+--	Cauldron:info("catName: "..catName);

 	local catInfo = Cauldron.db.realm.userdata[Cauldron.vars.playername].skills[skillName].window.categories[catName];
 	if not catInfo then
diff --git a/CauldronTradeskill.lua b/CauldronTradeskill.lua
index 8ed1c25..0f5f750 100644
--- a/CauldronTradeskill.lua
+++ b/CauldronTradeskill.lua
@@ -388,8 +388,10 @@ function Cauldron:UpdateSkills(firstIndex, lastIndex)
 		Cauldron.scanningSkills = false;

 		local endTime = GetTime();
-		Cauldron:info("scan time: "..tostring(endTime-startTime).."ms");
-
+		if Cauldron.vars.displayTimers then
+			Cauldron:info("scan time: "..tostring(endTime-startTime).."ms");
+		end
+
 		if rescanCount > 0 then
 			Cauldron:Print(rescanCount.." recipes marked for rescan.");
 		end
@@ -655,8 +657,10 @@ function Cauldron:GetSkillList(playername, skillName)
 	end

 	local endTime = GetTime();
-	Cauldron:info("get skill list: "..tostring(endTime-startTime).."ms");
-
+	if Cauldron.vars.displayTimers then
+		Cauldron:info("get skill list: "..tostring(endTime-startTime).."ms");
+	end
+
 	startTime = GetTime();

 	-- sort the list
@@ -744,9 +748,10 @@ function Cauldron:GetSkillList(playername, skillName)
 		end);

 	endTime = GetTime();
-	Cauldron:info("sort skill list: "..tostring(endTime-startTime).."ms");
-
-	--@alpha@
+	if Cauldron.vars.displayTimers then
+		Cauldron:info("sort skill list: "..tostring(endTime-startTime).."ms");
+	end
+
 	self:debug("GetSkillList exit");

 	return skills;