cloudfoundry / java-buildpack-auto-reconfiguration

Auto-reconfiguration functionality for the Java Buildpack
Apache License 2.0
219 stars 103 forks source link

Auto Reconfiguration of Datasources logs userid/pwd #61

Closed anwarchk closed 7 years ago

anwarchk commented 7 years ago

Reference: https://github.com/cloudfoundry/java-buildpack-auto-reconfiguration/blob/master/auto-reconfiguration/src/main/java/org/cloudfoundry/reconfiguration/spring/AbstractCloudServiceBeanFactoryPostProcessor.java#L124 Cloud Foundry CUPS usually have user id/password specified as part of their definition and org.apache.tomcat.jdbc.pool.PoolProperties toString implementation doesn't know anything about it and logs it. The quick fix would be to turn down the logging level in AbstractCloudServiceBeanFactoryPostProcessor to DEBUG so that it it would only log that if you are really want something at the DEBUG level.