Skip to content

Commit

Permalink
Merge pull request #578 from rmath/hidePassword
Browse files Browse the repository at this point in the history
Show jdbc password via status only in dev mode
  • Loading branch information
pepite committed Apr 1, 2013
2 parents 0bd1c1a + d32f09c commit 97de0cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/src/play/db/DBConfig.java
Expand Up @@ -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());
Expand Down

0 comments on commit 97de0cb

Please sign in to comment.