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 | |
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
-rw-r--r-- | lib/installer-exclude/fmj-1.0-SNAPSHOT.jar | bin | 1139897 -> 1138198 bytes | |||
-rw-r--r-- | lib/installer-exclude/libjitsi-1.0-SNAPSHOT.jar | bin | 7703291 -> 7705340 bytes | |||
-rw-r--r-- | src/net/java/sip/communicator/impl/configuration/JdbcConfigService.java | 31 |
3 files changed, 31 insertions, 0 deletions
diff --git a/lib/installer-exclude/fmj-1.0-SNAPSHOT.jar b/lib/installer-exclude/fmj-1.0-SNAPSHOT.jar Binary files differindex b31e9d1..a9757b3 100644 --- a/lib/installer-exclude/fmj-1.0-SNAPSHOT.jar +++ b/lib/installer-exclude/fmj-1.0-SNAPSHOT.jar diff --git a/lib/installer-exclude/libjitsi-1.0-SNAPSHOT.jar b/lib/installer-exclude/libjitsi-1.0-SNAPSHOT.jar Binary files differindex 1436ff7..cf37b9e 100644 --- a/lib/installer-exclude/libjitsi-1.0-SNAPSHOT.jar +++ b/lib/installer-exclude/libjitsi-1.0-SNAPSHOT.jar 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); + } + } } |