diff options
author | Ingo Bauersachs <ingo@jitsi.org> | 2015-10-11 01:15:08 +0200 |
---|---|---|
committer | Ingo Bauersachs <ingo@jitsi.org> | 2015-10-11 01:18:48 +0200 |
commit | eafab93cce7f73a144958e8cd9b991393fa689fb (patch) | |
tree | a3a6edd907557134101a7fe898a2c925518b05f6 /src/net/java/sip/communicator | |
parent | 58b24c9033c07640247c77c2d9075c0b4773f83b (diff) | |
download | jitsi-upstream.zip jitsi-upstream.tar.gz jitsi-upstream.tar.bz2 |
Update FMJ and libjitsi (Closes #160)upstream
FMJ: r104
libjitsi: jitsi/libjitsi@9a1a4a7886991bb62dd629a434a31bf3b990d97a
Diffstat (limited to 'src/net/java/sip/communicator')
-rw-r--r-- | src/net/java/sip/communicator/impl/configuration/JdbcConfigService.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/configuration/JdbcConfigService.java b/src/net/java/sip/communicator/impl/configuration/JdbcConfigService.java index b16e2ea..7ba362e 100644 --- a/src/net/java/sip/communicator/impl/configuration/JdbcConfigService.java +++ b/src/net/java/sip/communicator/impl/configuration/JdbcConfigService.java @@ -22,6 +22,7 @@ import java.io.*; import java.sql.*; import java.sql.Statement; import java.util.*; +import java.util.regex.Pattern; import org.jitsi.service.configuration.*; import org.jitsi.service.fileaccess.*; @@ -952,4 +953,34 @@ public final class JdbcConfigService l.propertyChange(evt); } } + + @Override + public void logConfigurationProperties(String excludePattern) + { + if (!logger.isInfoEnabled()) + return; + + Pattern exclusion = null; + if (!StringUtils.isNullOrEmpty(excludePattern)) + { + exclusion = Pattern.compile( + excludePattern, Pattern.CASE_INSENSITIVE); + } + + for (String p : getAllPropertyNames()) + { + Object v = getProperty(p); + + // Not sure if this can happen, but just in case... + if (v == null) + continue; + + if (exclusion != null && exclusion.matcher(p).find()) + { + v = "**********"; + } + + logger.info(p + "=" + v); + } + } } |