From e16ad17f65332ee78236caaadb4cafa784623759 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Fri, 9 Oct 2015 19:16:17 +0200 Subject: [PATCH] add unoffical E2_TRACE env var, for debugging only Not documented, may go away or change without notice Signed-off-by: Tobias Ulmer --- generic/e2lib.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generic/e2lib.lua b/generic/e2lib.lua index eca58d4..eb23104 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -131,7 +131,8 @@ end function e2lib.init() e2lib.log(4, "e2lib.init()") -- DEBUG: change to "cr" to log return from function - debug.sethook(e2lib.tracer, "c") + local traceflags = os.getenv("E2_TRACE") or "c" + debug.sethook(e2lib.tracer, traceflags) local rc, re = e2util.signal_reset() if not rc then -- 2.39.5