Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/utils/DBCPConnectionProvider.java @ 181:4d9984411b3f
Commented out a debug block because it leaks the db password.
flys-backend/trunk@1491 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 17 Mar 2011 10:00:56 +0000 |
parents | 86a1bd9cc50e |
children | 4ab2c3bd474c |
comparison
equal
deleted
inserted
replaced
180:3908bfb2aa43 | 181:4d9984411b3f |
---|---|
181 "maxOpenPreparedStatements", | 181 "maxOpenPreparedStatements", |
182 props.getProperty(DBCP_PS_MAXACTIVE)); | 182 props.getProperty(DBCP_PS_MAXACTIVE)); |
183 } | 183 } |
184 | 184 |
185 // Some debug info | 185 // Some debug info |
186 /* // commented out, because it leaks the password | |
186 if (log.isDebugEnabled()) { | 187 if (log.isDebugEnabled()) { |
187 log.debug("Creating a DBCP BasicDataSource" + | 188 log.debug("Creating a DBCP BasicDataSource" + |
188 " with the following DBCP factory properties:"); | 189 " with the following DBCP factory properties:"); |
189 StringWriter sw = new StringWriter(); | 190 StringWriter sw = new StringWriter(); |
190 dbcpProperties.list(new PrintWriter(sw, true)); | 191 dbcpProperties.list(new PrintWriter(sw, true)); |
191 log.debug(sw.toString()); | 192 log.debug(sw.toString()); |
192 } | 193 } |
194 */ | |
193 | 195 |
194 // Let the factory create the pool | 196 // Let the factory create the pool |
195 ds = (BasicDataSource)BasicDataSourceFactory | 197 ds = (BasicDataSource)BasicDataSourceFactory |
196 .createDataSource(dbcpProperties); | 198 .createDataSource(dbcpProperties); |
197 | 199 |