db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: db-torque/src/java/org/apache/torque Torque.java
Date Fri, 21 Mar 2003 20:30:31 GMT
mpoeschl    2003/03/21 12:30:31

  Modified:    src/java/org/apache/torque Torque.java
  Log:
  replace deprecated Logger.getCurrentCategories()
  
  Revision  Changes    Path
  1.80      +6 -2      db-torque/src/java/org/apache/torque/Torque.java
  
  Index: Torque.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/java/org/apache/torque/Torque.java,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- Torque.java	27 Feb 2003 17:37:42 -0000	1.79
  +++ Torque.java	21 Mar 2003 20:30:31 -0000	1.80
  @@ -69,12 +69,16 @@
   
   import org.apache.commons.configuration.Configuration;
   import org.apache.commons.configuration.PropertiesConfiguration;
  +
  +import org.apache.log4j.LogManager;
   import org.apache.log4j.Logger;
   import org.apache.log4j.PropertyConfigurator;
   import org.apache.log4j.helpers.NullEnumeration;
  +
   import org.apache.stratum.lifecycle.Configurable;
   import org.apache.stratum.lifecycle.Disposable;
   import org.apache.stratum.lifecycle.Initializable;
  +
   import org.apache.torque.adapter.DB;
   import org.apache.torque.adapter.DBFactory;
   import org.apache.torque.dsfactory.DataSourceFactory;
  @@ -620,7 +624,7 @@
           }
           else
           {
  -            Enumeration cats = Logger.getCurrentCategories();
  +            Enumeration cats = LogManager.getCurrentLoggers();
               while (cats.hasMoreElements())
               {
                   Logger c = (Logger) cats.nextElement();
  
  
  

Mime
View raw message