You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2003/08/24 15:57:19 UTC

cvs commit: incubator-geronimo/modules/twiddle/src/java/org/apache/geronimo/twiddle/config Configurator.java

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()]);