Show jdbc password via status only in dev mode #578

Merged
merged 1 commit into from Apr 1, 2013
@@ -311,7 +311,9 @@ protected String getStatus() {
out.println("Jdbc url: " + ds.getJdbcUrl());
out.println("Jdbc driver: " + ds.getDriverClass());
out.println("Jdbc user: " + ds.getUser());
- out.println("Jdbc password: " + ds.getPassword());
+ if (Play.mode.isDev()) {
+ out.println("Jdbc password: " + ds.getPassword());
+ }
out.println("Min pool size: " + ds.getMinPoolSize());
out.println("Max pool size: " + ds.getMaxPoolSize());
out.println("Initial pool size: " + ds.getInitialPoolSize());