comparison Main.lua @ 346:04343b25c612 WoD

Reverted change to debug variable.
author MMOSimca <MMOSimca@gmail.com>
date Fri, 03 Oct 2014 15:25:40 -0400
parents 61a9520b5337
children fb1d08480f67
comparison
equal deleted inserted replaced
345:61a9520b5337 346:04343b25c612
33 -- CONSTANTS ---------------------------------------------------------- 33 -- CONSTANTS ----------------------------------------------------------
34 34
35 local AF = private.ACTION_TYPE_FLAGS 35 local AF = private.ACTION_TYPE_FLAGS
36 local CLIENT_LOCALE = _G.GetLocale() 36 local CLIENT_LOCALE = _G.GetLocale()
37 local DB_VERSION = 18 37 local DB_VERSION = 18
38 WOWDB_DEBUGGING = false 38 local DEBUGGING = false
39 local EVENT_DEBUG = false 39 local EVENT_DEBUG = false
40 40
41 local OBJECT_ID_ANVIL = 192628 41 local OBJECT_ID_ANVIL = 192628
42 local OBJECT_ID_FISHING_BOBBER = 35591 42 local OBJECT_ID_FISHING_BOBBER = 35591
43 local OBJECT_ID_FORGE = 1685 43 local OBJECT_ID_FORGE = 1685
180 180
181 181
182 -- HELPERS ------------------------------------------------------------ 182 -- HELPERS ------------------------------------------------------------
183 183
184 local function Debug(message, ...) 184 local function Debug(message, ...)
185 if not WOWDB_DEBUGGING or not message or not ... then 185 if not DEBUGGING or not message or not ... then
186 return 186 return
187 end 187 end
188 local args = { ... } 188 local args = { ... }
189 189
190 for index = 1, #args do 190 for index = 1, #args do
883 883
884 884
885 function WDP:EventDispatcher(...) 885 function WDP:EventDispatcher(...)
886 local event_name = ... 886 local event_name = ...
887 887
888 if WOWDB_DEBUGGING then 888 if DEBUGGING then
889 if event_name == "COMBAT_LOG_EVENT_UNFILTERED" then 889 if event_name == "COMBAT_LOG_EVENT_UNFILTERED" then
890 Debug(event_name) 890 Debug(event_name)
891 else 891 else
892 Debug(...) 892 Debug(...)
893 end 893 end
2208 end 2208 end
2209 2209
2210 2210
2211 function WDP:PET_JOURNAL_LIST_UPDATE(event_name) 2211 function WDP:PET_JOURNAL_LIST_UPDATE(event_name)
2212 -- This function produces data currently unused by wowdb.com and it makes debugging errors in the .lua output nearly impossible due to the massive bloat. 2212 -- This function produces data currently unused by wowdb.com and it makes debugging errors in the .lua output nearly impossible due to the massive bloat.
2213 if WOWDB_DEBUGGING then 2213 if DEBUGGING then
2214 return 2214 return
2215 end 2215 end
2216 2216
2217 local num_pets = LPJ:NumPets() 2217 local num_pets = LPJ:NumPets()
2218 2218