Quantcast

Restored some logging statements to their proper logging level (oops!).

pschifferer [01-22-09 - 14:46]
Restored some logging statements to their proper logging level (oops!).
Filename
Cauldron/CauldronMain.lua
Cauldron/CauldronQueue.lua
diff --git a/Cauldron/CauldronMain.lua b/Cauldron/CauldronMain.lua
index d49cddd..082c280 100644
--- a/Cauldron/CauldronMain.lua
+++ b/Cauldron/CauldronMain.lua
@@ -227,13 +227,13 @@ function Cauldron:OnBagUpdate()
 	end

 	if self.makingItem then
-		self:info("OnBagUpdate: self.makingItem="..self.makingItem);
+		self:debug("OnBagUpdate: self.makingItem="..self.makingItem);
 		local count = GetItemCount(self.makingItem);
-		self:info("OnBagUpdate: count="..count);
-		self:info("OnBagUpdate: self.itemCurrentCount="..self.itemCurrentCount);
+		self:debug("OnBagUpdate: count="..count);
+		self:debug("OnBagUpdate: self.itemCurrentCount="..self.itemCurrentCount);
 		if count ~= self.itemCurrentCount then
 			local delta = self.itemCurrentCount - count; -- TODO: is this necessary?
-			self:info("OnBagUpdate: delta="..delta);
+			self:debug("OnBagUpdate: delta="..delta);
 			CauldronQueue:AdjustItemCount(Cauldron:GetQueue(), self.queueInfo.name, -1);
 			self.itemCurrentCount = count;
 		end
@@ -438,9 +438,9 @@ function Cauldron:ProcessItem(skillInfo, queueInfo, amount)
 	if ((not PartialPlayTime()) and (not NoPlayTime())) then
 		-- record the item we're making
 		self.makingItem, _ = GetItemInfo(skillInfo.link);
-		self:info("ProcessItem: self.makingItem="..self.makingItem);
+		self:debug("ProcessItem: self.makingItem="..self.makingItem);
 		self.itemCurrentCount = GetItemCount(skillInfo.link);
-		self:info("ProcessItem: self.itemCurrentCount="..self.itemCurrentCount);
+		self:debug("ProcessItem: self.itemCurrentCount="..self.itemCurrentCount);
 		self.queueInfo = queueInfo;

 		-- tell the user what we're doing
diff --git a/Cauldron/CauldronQueue.lua b/Cauldron/CauldronQueue.lua
index d3d055a..457548e 100644
--- a/Cauldron/CauldronQueue.lua
+++ b/Cauldron/CauldronQueue.lua
@@ -322,19 +322,19 @@ function CauldronQueue:AdjustItemCount(queue, name, delta)
 		end
 	end
 --]]
-	Cauldron:info("AdjustItemCount: item="..tostring(item));
+	Cauldron:debug("AdjustItemCount: item="..tostring(item));
 	if item then
-		Cauldron:info("AdjustItemCount: item.amount="..item.amount);
+		Cauldron:debug("AdjustItemCount: item.amount="..item.amount);
 		item.amount = item.amount + delta;
-		Cauldron:info("AdjustItemCount: item.amount(delta)="..item.amount);
+		Cauldron:debug("AdjustItemCount: item.amount(delta)="..item.amount);

 		if item.amount < 1 then
-			Cauldron:info("AdjustItemCount: remove item: "..itemName);
+			Cauldron:debug("AdjustItemCount: remove item: "..itemName);
 			queue.main[itemName] = nil;
 		end
 	end

-	Cauldron:info("AdjustItemCount: calculate required items");
+	Cauldron:debug("AdjustItemCount: calculate required items");
 	CauldronQueue:CalculateAllRequiredItems(queue);

 end