db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/odmg PBCapsule.java
Date Sat, 09 Aug 2003 14:00:18 GMT
arminw      2003/08/09 07:00:18

  Modified:    src/java/org/apache/ojb/odmg PBCapsule.java
  Log:
  warn user if no tx running and no PBKey was
  set
  
  Revision  Changes    Path
  1.4       +2 -2      db-ojb/src/java/org/apache/ojb/odmg/PBCapsule.java
  
  Index: PBCapsule.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/PBCapsule.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PBCapsule.java	7 Jun 2003 10:06:04 -0000	1.3
  +++ PBCapsule.java	9 Aug 2003 14:00:18 -0000	1.4
  @@ -21,7 +21,7 @@
    */
   public final class PBCapsule
   {
  -    private Logger log = LoggerFactory.getLogger(PBCapsule.class);
  +    private static Logger log = LoggerFactory.getLogger(PBCapsule.class);
   
       PersistenceBroker broker;
       PBKey pbKey;
  @@ -111,7 +111,7 @@
               if (pbKey == null)
               {
                   //throw new OJBRuntimeException("Not possible to do action, cause no tx
runnning and no PBKey is set");
  -                if(log.isDebugEnabled()) log.debug("No tx runnning and PBKey is null, try
to use the default PB");
  +                log.warn("No tx runnning and PBKey is null, try to use the default PB");
                   _broker = PersistenceBrokerFactory.defaultPersistenceBroker();
               }
               else
  
  
  

---------------------------------------------------------------------
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