User: starksm 
  Date: 01/11/20 01:42:58

  Modified:    src/main/org/jboss/util/timeout Tag: Branch_2_4
                        TimeoutFactory.java
  Log:
  Change to the unified log4j based org.jboss.logging.Logger class.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.6.1   +6 -12     jboss/src/main/org/jboss/util/timeout/TimeoutFactory.java
  
  Index: TimeoutFactory.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/util/timeout/TimeoutFactory.java,v
  retrieving revision 1.5
  retrieving revision 1.5.6.1
  diff -u -r1.5 -r1.5.6.1
  --- TimeoutFactory.java       2000/12/07 15:45:24     1.5
  +++ TimeoutFactory.java       2001/11/20 09:42:58     1.5.6.1
  @@ -22,9 +22,11 @@
    *  allocating anything on the heap.
    *   
    *  @author <a href="[EMAIL PROTECTED]">Ole Husgaard</a>
  - *  @version $Revision: 1.5 $
  + *  @version $Revision: 1.5.6.1 $
    */
  -public class TimeoutFactory {
  +public class TimeoutFactory
  +{
  +   static Logger log = Logger.getLogger(TimeoutFactory.class);
   
     //  Code commented out with the mark "INV:" are runtime checks
     //  of invariants that are not needed for a production system.
  @@ -98,8 +100,7 @@
         try {
           work.target.timedOut(work);
         } catch (Throwable t) {
  -        Logger.exception(t);
  -        //t.printStackTrace();
  +        log.error("timedOut exception", t);
         }
         synchronized (work) {
           if (work.index == TimeoutImpl.CWAIT) {
  @@ -246,14 +247,7 @@
      */
     private void assert(boolean expr) {
       if (!expr) {
  -      Logger.error("***** assert failed *****");
  -      //System.err.println("***** assert failed *****");
  -      try {
  -        throw new RuntimeException("***** assert failed *****");
  -      } catch (RuntimeException ex) {
  -        Logger.exception(ex);
  -        //ex.printStackTrace();
  -      }
  +        log.error("***** assert failed *****", new RuntimeException("trace"));
         try {
           Thread.sleep(30000);
         } catch (Exception ex) {}
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to