# HG changeset patch # User MMOSimca # Date 1416672812 18000 # Node ID 73fd6e568211fce753cf3bd8ed0b2bdef411bfa2 # Parent b372179ddaac3c817b3e24ed9cfe1fc9003a40dd Debug output now replaces boolean expressions with their string counterparts, avoiding potential errors. diff -r b372179ddaac -r 73fd6e568211 Main.lua --- a/Main.lua Sat Nov 22 08:02:37 2014 -0500 +++ b/Main.lua Sat Nov 22 11:13:32 2014 -0500 @@ -203,6 +203,10 @@ for index = 1, #args do if args[index] == nil then args[index] = "nil" + elseif args[index] == true then + args[index] = "true" + elseif args[index] == false then + args[index] = "false" end end _G.print(message:format(unpack(args))) @@ -1293,7 +1297,7 @@ local npc_id = private.raid_boss_id -- Need information on the most recent args, so using this complete debug statement for now - Debug("%s: loot_type: %s, item_link: %s, quantity: %s, spec_ID: %s, is_personal: %s, loot_source: %s", event_name, loot_type, item_link, quantity, spec_ID, (is_personal and "true") or "false", loot_source) + Debug("%s: loot_type: %s, item_link: %s, quantity: %s, spec_ID: %s, is_personal: %s, loot_source: %s", event_name, loot_type, item_link, quantity, spec_ID, is_personal, loot_source) -- Handle Garrison cache specially if lootSource and last_garrison_cache_object_id and (lootSource == private.GARRISON_CACHE_LOOT_SOURCE_ID) then