changeset 8708:d718edbf0b0c

Change database connection debug output to traces
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 24 Apr 2015 12:45:55 +0200 (2015-04-24)
parents f0ea2063b58e
children 71ae18553377
files backend/src/main/java/org/dive4elements/river/backend/utils/DBCPConnectionProvider.java
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/backend/utils/DBCPConnectionProvider.java	Wed Apr 15 17:22:02 2015 +0200
+++ b/backend/src/main/java/org/dive4elements/river/backend/utils/DBCPConnectionProvider.java	Fri Apr 24 12:45:55 2015 +0200
@@ -253,20 +253,20 @@
     }
 
     public Connection getConnection() throws SQLException {
-        log.debug("Connection pool parameters:");
-        log.debug("_ active connections: " + ds.getNumActive());
-        log.debug("_ idle connections: " + ds.getNumIdle());
-        log.debug("_ max active: " + ds.getMaxActive());
+        log.trace("Connection pool parameters:");
+        log.trace("_ active connections: " + ds.getNumActive());
+        log.trace("_ idle connections: " + ds.getNumIdle());
+        log.trace("_ max active: " + ds.getMaxActive());
         if (ds.getNumActive() == ds.getMaxActive()) {
             log.warn("Maximum number of database connections in pool in use!");
         }
         Connection conn = ds.getConnection();
-        log.debug("Return connection with hash: " + conn.hashCode());
+        log.trace("Return connection with hash: " + conn.hashCode());
         return conn;
     }
 
     public void closeConnection(Connection conn) throws SQLException {
-        log.debug("Close connection with hash: " + conn.hashCode());
+        log.trace("Close connection with hash: " + conn.hashCode());
         conn.close();
     }
 

http://dive4elements.wald.intevation.org