# HG changeset patch # User MMOSimca # Date 1411614843 14400 # Node ID 2bd9de08833f28403be1f2762f10004a307d79dc # Parent f6383e961e4680a5d90d05e04d704524ab7ce4b0 'DEBUGGING' is now 'WOWDB_DEBUGGING' and is also a global, for easier testing/distribution. diff -r f6383e961e46 -r 2bd9de08833f Main.lua --- 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