aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGeorge Politis <gp@jitsi.org>2015-10-16 11:40:01 -0500
committerGeorge Politis <gp@jitsi.org>2015-10-16 11:40:01 -0500
commit378d3fc05f30c42eaeb396f9bcf2a8d6f2ad43b8 (patch)
treebc5dbd0ff5eefaa1f9524b496292fdd0887e3884 /src
parenteafab93cce7f73a144958e8cd9b991393fa689fb (diff)
downloadjitsi-378d3fc05f30c42eaeb396f9bcf2a8d6f2ad43b8.zip
jitsi-378d3fc05f30c42eaeb396f9bcf2a8d6f2ad43b8.tar.gz
jitsi-378d3fc05f30c42eaeb396f9bcf2a8d6f2ad43b8.tar.bz2
Adds configuration for logging arbitrary packets.
Diffstat (limited to 'src')
-rw-r--r--src/net/java/sip/communicator/impl/packetlogging/PacketLoggingConfigurationImpl.java4
-rw-r--r--src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingConfigurationImpl.java b/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingConfigurationImpl.java
index b26b11a..978c74c 100644
--- a/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingConfigurationImpl.java
+++ b/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingConfigurationImpl.java
@@ -60,6 +60,10 @@ public class PacketLoggingConfigurationImpl
configService.getBoolean(
PACKET_LOGGING_ICE4J_ENABLED_PROPERTY_NAME,
isIce4JLoggingEnabled()));
+ super.setArbitraryLoggingEnabled(
+ configService.getBoolean(
+ PACKET_LOGGING_ARBITRARY_ENABLED_PROPERTY_NAME,
+ isArbitraryLoggingEnabled()));
super.setLimit(
configService.getLong(
PACKET_LOGGING_FILE_SIZE_PROPERTY_NAME,
diff --git a/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java b/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java
index 788e8db..1799dbf 100644
--- a/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java
+++ b/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java
@@ -321,6 +321,8 @@ public class PacketLoggingServiceImpl
return cfg.isRTPLoggingEnabled();
case ICE4J:
return cfg.isIce4JLoggingEnabled();
+ case ARBITRARY:
+ return cfg.isArbitraryLoggingEnabled();
default:
/*
* It may seem like it was unnecessary to invoke