geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/modules/twiddle/src/java/org/apache/geronimo/twiddle/config Configurator.java
Date Sun, 24 Aug 2003 13:57:19 GMT
jdillon     2003/08/24 06:57:19

  Modified:    modules/twiddle/src/java/org/apache/geronimo/twiddle/config
                        Configurator.java
  Log:
   o use trace instead of debug for glob fluff
  
  Revision  Changes    Path
  1.7       +12 -12    incubator-geronimo/modules/twiddle/src/java/org/apache/geronimo/twiddle/config/Configurator.java
  
  Index: Configurator.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/twiddle/src/java/org/apache/geronimo/twiddle/config/Configurator.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Configurator.java	24 Aug 2003 10:54:43 -0000	1.6
  +++ Configurator.java	24 Aug 2003 13:57:19 -0000	1.7
  @@ -164,9 +164,9 @@
       {
           assert globspec != null;
           
  -        boolean debug = log.isDebugEnabled();
  -        if (debug) {
  -            log.debug("Parsing glob URLs from spec: " + globspec);
  +        boolean trace = log.isDebugEnabled();
  +        if (trace) {
  +            log.trace("Parsing glob URLs from spec: " + globspec);
           }
           
           URL baseURL = Strings.toURL(globspec);
  @@ -179,17 +179,17 @@
           String glob = dir.getName();
           dir = dir.getParentFile();
           
  -        if (debug) {
  -            log.debug("Base dir: " + dir);
  -            log.debug("Glob: " + glob);
  +        if (trace) {
  +            log.trace("Base dir: " + dir);
  +            log.trace("Glob: " + glob);
           }
           
           int i = glob.indexOf("*");
           final String prefix = glob.substring(0, i);
           final String suffix = glob.substring(i + 1);
  -        if (debug) {
  -            log.debug("Prefix: " + prefix);
  -            log.debug("Suffix: " + suffix);
  +        if (trace) {
  +            log.trace("Prefix: " + prefix);
  +            log.trace("Suffix: " + suffix);
           }
           
           File[] matches = dir.listFiles(new FilenameFilter()
  @@ -211,8 +211,8 @@
               }
           }
           
  -        if (debug) {
  -            log.debug("Parsed URLs: " + list);
  +        if (trace) {
  +            log.trace("Parsed URLs: " + list);
           }
           
           return (URL[])list.toArray(new URL[list.size()]);
  
  
  

Mime
View raw message