DATAMONGO-601 - Prevent password from being logged in case of an exception.

This commit is contained in:
Oliver Gierke
2013-01-29 16:47:22 +01:00
parent cfa3e467d1
commit 38ccc59137

View File

@@ -113,7 +113,7 @@ public abstract class MongoDbUtils {
if (!db.authenticate(username, password == null ? null : password.toCharArray())) {
throw new CannotGetMongoDbConnectionException("Failed to authenticate to database [" + databaseName
+ "], username = [" + username + "], password = [" + password + "]", databaseName, credentials);
+ "], username = [" + username + "], password = [ -not-shown- ]", databaseName, credentials);
}
}
}