From: Tobias Ulmer Date: Fri, 9 Oct 2015 17:16:17 +0000 (+0200) Subject: add unoffical E2_TRACE env var, for debugging only X-Git-Tag: e2factory-2.3.14p1~2 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=e16ad17f65332ee78236caaadb4cafa784623759;p=e2factory.git add unoffical E2_TRACE env var, for debugging only Not documented, may go away or change without notice Signed-off-by: Tobias Ulmer --- 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