Permalink
Browse files

jdbc password only displayed in dev mode

  • Loading branch information...
1 parent 677aee4 commit d32f09c0c12cfc5f8ff5270b3c74e755b282ae25 @rmath rmath committed Mar 6, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 framework/src/play/db/DBConfig.java
View
4 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 d32f09c

Please sign in to comment.