Skip to content

Commit

Permalink
Fix oversight in potentially printing credentials to log
Browse files Browse the repository at this point in the history
  • Loading branch information
maxidorius committed Feb 13, 2019
1 parent 8afdb3e commit 8f0654c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/io/kamax/mxisd/config/sql/SqlConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
package io.kamax.mxisd.config.sql;

import io.kamax.mxisd.util.GsonUtil;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -314,7 +315,8 @@ protected void printConfig() {
log.info("Enabled: {}", isEnabled());
if (isEnabled()) {
log.info("Type: {}", getType());
log.info("Connection: {}", getConnection());
log.info("Has connection info? {}", !StringUtils.isEmpty(getConnection()));
log.debug("Connection: {}", getConnection());
log.info("Auth enabled: {}", getAuth().isEnabled());
log.info("Directory queries: {}", GsonUtil.build().toJson(getDirectory().getQuery()));
log.info("Identity type: {}", getIdentity().getType());
Expand Down

0 comments on commit 8f0654c

Please # to comment.