diff options
author | Damian Minkov <damencho@jitsi.org> | 2012-02-20 11:23:24 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2012-02-20 11:23:24 +0000 |
commit | 8bed1ed0fdc55400c7389eed6e63324fb5dfdbc0 (patch) | |
tree | 7b3bd7200fe224e7c272fd653109a1f08f54f1be /src/net/java/sip/communicator/plugin/provisioning | |
parent | 05f451075674ea296bbc418f86737ea3358f6ac1 (diff) | |
download | jitsi-8bed1ed0fdc55400c7389eed6e63324fb5dfdbc0.zip jitsi-8bed1ed0fdc55400c7389eed6e63324fb5dfdbc0.tar.gz jitsi-8bed1ed0fdc55400c7389eed6e63324fb5dfdbc0.tar.bz2 |
Adds some logging to network status events and their dispatching.
Prints result from provisioning requests in the log.
Diffstat (limited to 'src/net/java/sip/communicator/plugin/provisioning')
-rw-r--r-- | src/net/java/sip/communicator/plugin/provisioning/ProvisioningServiceImpl.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/plugin/provisioning/ProvisioningServiceImpl.java b/src/net/java/sip/communicator/plugin/provisioning/ProvisioningServiceImpl.java index ad58de3..36e488e 100644 --- a/src/net/java/sip/communicator/plugin/provisioning/ProvisioningServiceImpl.java +++ b/src/net/java/sip/communicator/plugin/provisioning/ProvisioningServiceImpl.java @@ -494,6 +494,8 @@ public class ProvisioningServiceImpl final BufferedOutputStream bout = new BufferedOutputStream(new FileOutputStream(temp)); + ByteArrayOutputStream logStream = new ByteArrayOutputStream(); + try { int read = -1; @@ -502,6 +504,13 @@ public class ProvisioningServiceImpl while((read = pin.read(buff)) != -1) { bout.write(buff, 0, read); + logStream.write(buff, 0, read); + } + + if(logger.isInfoEnabled()) + { + logger.info("Provisioning response : " + + logStream.toString()); } pin.close(); |