billbarker    2002/09/12 22:43:48

  Modified:    src/share/org/apache/tomcat/util/io FileUtil.java
  Log:
  Fix cut/paste errors.
  
  Revision  Changes    Path
  1.9       +6 -7      jakarta-tomcat/src/share/org/apache/tomcat/util/io/FileUtil.java
  
  Index: FileUtil.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/io/FileUtil.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- FileUtil.java     13 Sep 2002 05:31:08 -0000      1.8
  +++ FileUtil.java     13 Sep 2002 05:43:48 -0000      1.9
  @@ -128,7 +128,7 @@
       // XXX tc_log is the default channel in tomcat, this component
       //should be able to log in a specific channel.
       static org.apache.commons.logging.Log logger =
  -     org.apache.commons.logging.LogFactory.getLog(DependClassLoader.class);
  +     org.apache.commons.logging.LogFactory.getLog(FileUtil.class);
   
       
       /** All the safety checks from getRealPath() and
  @@ -405,9 +405,8 @@
                    fos.close();
                }
            } catch( FileNotFoundException ex ) {
  -             if(logger.isDebugEnabled())
  -                 logger.debug("FileNotFoundException: " +
  -                               ze.getName(), Logger.ERROR );
  +             logger.error("FileNotFoundException: " +
  +                          ze.getName(), ex);
                throw ex;
            }
        }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to