Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #578 from rmath/hidePassword

Show jdbc password via status only in dev mode
  • Loading branch information...
commit 97de0cb93ea20dd67a5529c25d6f6d7621d5edb8 2 parents 0bd1c1a + d32f09c
Nicolas Leroux authored April 01, 2013

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  framework/src/play/db/DBConfig.java
4  framework/src/play/db/DBConfig.java
@@ -311,7 +311,9 @@ protected String getStatus() {
311 311
         out.println("Jdbc url: " + ds.getJdbcUrl());
312 312
         out.println("Jdbc driver: " + ds.getDriverClass());
313 313
         out.println("Jdbc user: " + ds.getUser());
314  
-        out.println("Jdbc password: " + ds.getPassword());
  314
+        if (Play.mode.isDev()) {
  315
+            out.println("Jdbc password: " + ds.getPassword());
  316
+        }
315 317
         out.println("Min pool size: " + ds.getMinPoolSize());
316 318
         out.println("Max pool size: " + ds.getMaxPoolSize());
317 319
         out.println("Initial pool size: " + ds.getInitialPoolSize());

0 notes on commit 97de0cb

Please sign in to comment.
Something went wrong with that request. Please try again.