Permalink
Browse files

Merge pull request #578 from rmath/hidePassword

Show jdbc password via status only in dev mode
  • Loading branch information...
pepite committed Apr 1, 2013
2 parents 0bd1c1a + d32f09c commit 97de0cb93ea20dd67a5529c25d6f6d7621d5edb8
Showing with 3 additions and 1 deletion.
  1. +3 −1 framework/src/play/db/DBConfig.java
@@ -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());

0 comments on commit 97de0cb

Please sign in to comment.