db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/p6spy CountLogger.java
Date Tue, 23 Dec 2003 09:55:03 GMT
brj         2003/12/23 01:55:03

  Modified:    src/test/org/apache/ojb/p6spy CountLogger.java
  Log:
  workaround for p6spy problem (not excluding 'resultset')
  
  Revision  Changes    Path
  1.4       +10 -3     db-ojb/src/test/org/apache/ojb/p6spy/CountLogger.java
  
  Index: CountLogger.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/p6spy/CountLogger.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CountLogger.java	10 Dec 2003 09:30:06 -0000	1.3
  +++ CountLogger.java	23 Dec 2003 09:55:03 -0000	1.4
  @@ -35,7 +35,14 @@
      * @see com.p6spy.engine.logging.appender.FormattedLogger#logSQL
      */
     public void logSQL(int i, String s, long l, String s1, String s2, String s3)
  -  {
  +  {  
  +    if (s1.equals("resultset"))
  +    {
  +        // BRJ: p6spy workaround 
  +        // resultset cannot be excluded using p6spy properties
  +        return;
  +    }
  +    
       super.logSQL(i, s, l, s1, s2, s3);
       countSQL++;
       logger.info("sql: " + s1 + "|" + s3);
  
  
  

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


Mime
View raw message