]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
Tcl database debugging: Actually work
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 7 Jan 2016 19:06:58 +0000 (19:06 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 14 Jul 2016 12:03:34 +0000 (13:03 +0100)
Setting OSSTEST_TCL_JOBDB_DEBUG was ineffective (ever since it was
introduced in 44dad3d8) because `env' wasn't imported from the global
scope.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tcl/JobDB-Executive.tcl

index 7dba49720879b0b0adf720f1788915beaf2a6a07..239f22c23e847a33bfd67eb5634f0dc9909e4800 100644 (file)
@@ -116,6 +116,7 @@ proc db-update-1 {stmt} {
 }
 
 proc db-execute-debug {stmt} {
+    global env
     if {[var-or-default env(OSSTEST_TCL_JOBDB_DEBUG) 0]} {
        puts stderr "EXECUTING >$stmt<"
     }