commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp AbandonedTrace.java AbandonedObjectPool.java
Date Sun, 25 Apr 2004 10:36:24 GMT
dirkv       2004/04/25 03:36:24

  Modified:    dbcp/src/java/org/apache/commons/dbcp AbandonedTrace.java
                        AbandonedObjectPool.java
  Log:
  Bugzilla Bug 28580: AbandonedObjectPool/Trace should log to stdout
  
  Revision  Changes    Path
  1.12      +3 -3      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/AbandonedTrace.java
  
  Index: AbandonedTrace.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/AbandonedTrace.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- AbandonedTrace.java	28 Feb 2004 11:48:04 -0000	1.11
  +++ AbandonedTrace.java	25 Apr 2004 10:36:24 -0000	1.12
  @@ -200,8 +200,8 @@
        */
       public void printStackTrace() {
           if (createdBy != null) {
  -            System.err.println(format.format(new Date(createdTime)));
  -            createdBy.printStackTrace();
  +            System.out.println(format.format(new Date(createdTime)));
  +            createdBy.printStackTrace(System.out);
           }
           synchronized(this) {
               Iterator it = this.trace.iterator();
  
  
  
  1.15      +5 -5      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/AbandonedObjectPool.java
  
  Index: AbandonedObjectPool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/AbandonedObjectPool.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- AbandonedObjectPool.java	25 Apr 2004 09:53:48 -0000	1.14
  +++ AbandonedObjectPool.java	25 Apr 2004 10:36:24 -0000	1.15
  @@ -50,10 +50,10 @@
                                  AbandonedConfig config) {
           super(factory);
           this.config = config;
  -        System.err.println("AbandonedObjectPool is used (" + this + ")");
  -        System.err.println("   LogAbandoned: " + config.getLogAbandoned());
  -        System.err.println("   RemoveAbandoned: " + config.getRemoveAbandoned());
  -        System.err.println("   RemoveAbandonedTimeout: " + config.getRemoveAbandonedTimeout());
  +        System.out.println("AbandonedObjectPool is used (" + this + ")");
  +        System.out.println("   LogAbandoned: " + config.getLogAbandoned());
  +        System.out.println("   RemoveAbandoned: " + config.getRemoveAbandoned());
  +        System.out.println("   RemoveAbandonedTimeout: " + config.getRemoveAbandonedTimeout());
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message