Mercurial > wow > wowdb-profiler
changeset 342:2bd9de08833f WoD
'DEBUGGING' is now 'WOWDB_DEBUGGING' and is also a global, for easier testing/distribution.
author | MMOSimca <MMOSimca@gmail.com> |
---|---|
date | Wed, 24 Sep 2014 23:14:03 -0400 |
parents | f6383e961e46 |
children | 2149753132a1 |
files | Main.lua |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Main.lua Tue Sep 23 23:34:05 2014 -0400 +++ b/Main.lua Wed Sep 24 23:14:03 2014 -0400 @@ -35,7 +35,7 @@ local AF = private.ACTION_TYPE_FLAGS local CLIENT_LOCALE = _G.GetLocale() local DB_VERSION = 18 -local DEBUGGING = false +WOWDB_DEBUGGING = false local EVENT_DEBUG = false local OBJECT_ID_ANVIL = 192628 @@ -181,7 +181,7 @@ -- HELPERS ------------------------------------------------------------ local function Debug(message, ...) - if not DEBUGGING or not message or not ... then + if not WOWDB_DEBUGGING or not message or not ... then return end local args = { ... } @@ -884,7 +884,7 @@ function WDP:EventDispatcher(...) local event_name = ... - if DEBUGGING then + if WOWDB_DEBUGGING then if event_name == "COMBAT_LOG_EVENT_UNFILTERED" then Debug(event_name) else @@ -2183,7 +2183,7 @@ function WDP:PET_JOURNAL_LIST_UPDATE(event_name) -- 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. - if DEBUGGING then + if WOWDB_DEBUGGING then return end