Author: tchemit Date: 2011-09-13 12:09:10 +0200 (Tue, 13 Sep 2011) New Revision: 2332 Url: http://nuiton.org/repositories/revision/topia/2332 Log: change log level Modified: trunk/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaConnectionProvider.java Modified: trunk/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaConnectionProvider.java =================================================================== --- trunk/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaConnectionProvider.java 2011-09-12 14:43:31 UTC (rev 2331) +++ trunk/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaConnectionProvider.java 2011-09-13 10:09:10 UTC (rev 2332) @@ -117,7 +117,6 @@ poolSize = PropertiesHelper.getInt(Environment.POOL_SIZE, props, 20); //default pool size 20 if (log.isDebugEnabled()) { - log.debug("Connection pool size: " + poolSize); } @@ -167,14 +166,14 @@ connectionProps = ConnectionProviderFactory.getConnectionProperties(props); - if (log.isInfoEnabled()) { - log.info("using driver: " + driverClass + " at URL: " + url); + if (log.isDebugEnabled()) { + log.debug("using driver: " + driverClass + " at URL: " + url); } // if debug level is enabled, then log the password, otherwise mask it - if (log.isDebugEnabled()) { - log.info("connection properties: " + connectionProps); - } else if (log.isInfoEnabled()) { - log.info("connection properties: " + + if (log.isTraceEnabled()) { + log.debug("connection properties: " + connectionProps); + } else if (log.isDebugEnabled()) { + log.debug("connection properties: " + PropertiesHelper.maskOut(connectionProps, "password")); } } @@ -279,8 +278,8 @@ @Override public void close() { - if (log.isInfoEnabled()) { - log.info("cleaning up connection pool: " + url); + if (log.isDebugEnabled()) { + log.debug("cleaning up connection pool: " + url); } for (Connection connection : pool) {