Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

jdbc password only displayed in dev mode

  • Loading branch information...
commit d32f09c0c12cfc5f8ff5270b3c74e755b282ae25 1 parent 677aee4
@rmath rmath authored
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());
Please sign in to comment.
Something went wrong with that request. Please try again.