openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r650226 - /openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DataSourceFactory.java
Date Mon, 21 Apr 2008 19:16:49 GMT
Author: pcl
Date: Mon Apr 21 12:16:47 2008
New Revision: 650226

URL: http://svn.apache.org/viewvc?rev=650226&view=rev
Log:
OPENJPA-577

Modified:
    openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DataSourceFactory.java

Modified: openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DataSourceFactory.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DataSourceFactory.java?rev=650226&r1=650225&r2=650226&view=diff
==============================================================================
--- openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DataSourceFactory.java
(original)
+++ openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DataSourceFactory.java
Mon Apr 21 12:16:47 2008
@@ -162,15 +162,13 @@
                     decorators.addAll(decs);
             }
 
-            if (jdbcLog.isTraceEnabled() || sqlLog.isTraceEnabled()) {
-                // logging decorator
-                LoggingConnectionDecorator lcd =
-                    new LoggingConnectionDecorator();
-                Configurations.configureInstance(lcd, conf, opts);
-                lcd.getLogs().setJDBCLog(jdbcLog);
-                lcd.getLogs().setSQLLog(sqlLog);
-                decorators.add(lcd);
-            }
+            // logging decorator
+            LoggingConnectionDecorator lcd =
+                new LoggingConnectionDecorator();
+            Configurations.configureInstance(lcd, conf, opts);
+            lcd.getLogs().setJDBCLog(jdbcLog);
+            lcd.getLogs().setSQLLog(sqlLog);
+            decorators.add(lcd);
 
             dds.addDecorators(decorators);
             return dds;



Mime
View raw message