geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r502832 - /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestResult.groovy
Date Sat, 03 Feb 2007 01:38:32 GMT
Author: jdillon
Date: Fri Feb  2 17:38:32 2007
New Revision: 502832

URL: http://svn.apache.org/viewvc?view=rev&rev=502832
Log:
Change some debug to trace

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestResult.groovy

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestResult.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestResult.groovy?view=diff&rev=502832&r1=502831&r2=502832
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestResult.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestResult.groovy
Fri Feb  2 17:38:32 2007
@@ -55,6 +55,8 @@
         assert file.exists()
         
         boolean debug = log.debugEnabled
+        boolean trace = log.traceEnabled
+        
         if (debug) {
             log.deubg "Loading test result from: $file"
         }
@@ -64,8 +66,8 @@
         def readLine = {
             def line = input.readLine()
             
-            if (debug) {
-                log.debug("Read> $line")
+            if (trace) {
+                log.trace("Read> $line")
             }
             
             return line
@@ -74,16 +76,16 @@
         def scan = { text ->
             assert text
             
-            if (debug) {
-                log.debug "Scanning for: $text"
+            if (trace) {
+                log.trace "Scanning for: $text"
             }
             
             def line
             
             while ((line = readLine()) != null) {
                 if (line.startsWith(text)) {
-                    if (debug) {
-                        log.debug "Found: $line"
+                    if (trace) {
+                        log.trace "Found: $line"
                     }
                     
                     return line
@@ -142,7 +144,7 @@
                     
                     if (stream.lines < 1) {
                         if (debug) {
-                            log.debug("Skipping stream: '$stream.name'; contains no data")
+                            log.debug "Skipping stream: '$stream.name'; contains no data"
                         }
                     }
                     else {



Mime
View raw message