Mercurial > wow > ouroloot
diff print_log.lua @ 19:f560cf82e7d3
Smarter handling of missed item cache entries. Basic persistent logging of
debug messages (options panel or /loot debug alsolog) and script to print same.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Mon, 29 Aug 2011 01:29:13 +0000 |
parents | |
children | 8f7ec6ccf5e3 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/print_log.lua Mon Aug 29 01:29:13 2011 +0000 @@ -0,0 +1,22 @@ +#!/usr/bin/env lua + +if not arg[1] or arg[1] == "" then + print"Usage: lua print_log.lua /path/to/OuroLoot_savedvars.lua" + print"Don't forget to delete log table after viewing!" + os.exit(1) +end + +dofile(arg[1]) + +if type(OuroLootSV_log) ~= 'table' then + print("Did not find OuroLootSV_log in", arg[1]) + os.exit(1) +end + +for _,v in ipairs(OuroLootSV_log) do + print(v) +end + +os.exit(0) + +-- vim:noet ff=unix