Mercurial > wow > wowdb-profiler
comparison Main.lua @ 354:e13723c37ca4 WoD
Removed debug statements for Blizzard functions that fail so often that they cause significant performance concerns.
author | MMOSimca <MMOSimca@gmail.com> |
---|---|
date | Mon, 13 Oct 2014 20:40:53 -0400 |
parents | 6fc3f3e1be54 |
children | 06b53a3d2b4a |
comparison
equal
deleted
inserted
replaced
353:6fc3f3e1be54 | 354:e13723c37ca4 |
---|---|
2133 DatamineTT:SetMerchantItem(item_index) | 2133 DatamineTT:SetMerchantItem(item_index) |
2134 | 2134 |
2135 if not item_id then | 2135 if not item_id then |
2136 local item_name, item_link = DatamineTT:GetItem() | 2136 local item_name, item_link = DatamineTT:GetItem() |
2137 item_id = ItemLinkToID(item_link) | 2137 item_id = ItemLinkToID(item_link) |
2138 if item_id then | 2138 -- GetMerchantItemLink() still ocassionally fails as of Patch 6.0.2. It fails so badly that debug functions cause considerable slowdown. |
2139 Debug("%s: GetMerchantItemLink() still ocassionally fails, apparently. Failed item's ID - %s", event_name, item_id) | |
2140 else | |
2141 Debug("%s: GetMerchantItemLink() still ocassionally fails, apparently. Failed item's ID - nil", event_name) | |
2142 end | |
2143 end | 2139 end |
2144 | 2140 |
2145 if item_id and item_id > 0 then | 2141 if item_id and item_id > 0 then |
2146 local price_string = ActualCopperCost(copper_price, merchant_standing) | 2142 local price_string = ActualCopperCost(copper_price, merchant_standing) |
2147 | 2143 |