add ev log in debug mode

This commit is contained in:
Qingping Hou
2013-02-24 15:10:11 +08:00
parent 334e2e9d3a
commit 186712d401
2 changed files with 10 additions and 0 deletions

View File

@@ -149,6 +149,10 @@ end
local argidx = 1
if ARGV[1] == "-d" then
argidx = argidx + 1
G_debug_mode = true
os.execute("echo > ev.log")
-- create ev log file
G_ev_log = io.open("ev.log", "w")
else
DEBUG = function() end
end