aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java18
-rw-r--r--src/net/java/sip/communicator/impl/sysactivity/SystemActivityEventDispatcher.java8
-rw-r--r--src/net/java/sip/communicator/impl/sysactivity/SystemActivityNotificationsServiceImpl.java11
-rw-r--r--src/net/java/sip/communicator/plugin/provisioning/ProvisioningServiceImpl.java9
4 files changed, 44 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java b/src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java
index 8e26e1c..18121ec 100644
--- a/src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java
+++ b/src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java
@@ -427,6 +427,24 @@ public class NetworkConfigurationWatcher
}
}
+ // add network debug info, to track wake up problems
+ if(logger.isInfoEnabled())
+ {
+ for(Map.Entry<String, List<InetAddress>> en :
+ activeInterfaces.entrySet())
+ {
+ logger.info("Previously Active " + en.getKey()
+ + ":" + en.getValue());
+ }
+
+ for(Map.Entry<String, List<InetAddress>> en :
+ currentActiveInterfaces.entrySet())
+ {
+ logger.info("Currently Active " + en.getKey()
+ + ":" + en.getValue());
+ }
+ }
+
// search for down interface
List<String> inactiveActiveInterfaces =
new ArrayList<String>(activeInterfaces.keySet());
diff --git a/src/net/java/sip/communicator/impl/sysactivity/SystemActivityEventDispatcher.java b/src/net/java/sip/communicator/impl/sysactivity/SystemActivityEventDispatcher.java
index 10f0444..be16d88 100644
--- a/src/net/java/sip/communicator/impl/sysactivity/SystemActivityEventDispatcher.java
+++ b/src/net/java/sip/communicator/impl/sysactivity/SystemActivityEventDispatcher.java
@@ -153,6 +153,14 @@ public class SystemActivityEventDispatcher
logger.debug("Dispatching SystemActivityEvent Listeners="
+ listeners.size() + " evt=" + evt);
+ if(logger.isInfoEnabled() &&
+ (evt.getEventID() == SystemActivityEvent.EVENT_NETWORK_CHANGE
+ || evt.getEventID() == SystemActivityEvent.EVENT_DNS_CHANGE))
+ {
+ logger.info("Dispatching SystemActivityEvent Listeners="
+ + listeners.size() + " evt=" + evt);
+ }
+
try
{
listener.activityChanged(evt);
diff --git a/src/net/java/sip/communicator/impl/sysactivity/SystemActivityNotificationsServiceImpl.java b/src/net/java/sip/communicator/impl/sysactivity/SystemActivityNotificationsServiceImpl.java
index f88fc90..4f945fc 100644
--- a/src/net/java/sip/communicator/impl/sysactivity/SystemActivityNotificationsServiceImpl.java
+++ b/src/net/java/sip/communicator/impl/sysactivity/SystemActivityNotificationsServiceImpl.java
@@ -409,10 +409,17 @@ public class SystemActivityNotificationsServiceImpl
*/
protected void fireSystemActivityEvent(SystemActivityEvent evt)
{
+ // add network activity info, to track wake up problems
+ if(logger.isInfoEnabled() &&
+ (evt.getEventID() == SystemActivityEvent.EVENT_NETWORK_CHANGE
+ || evt.getEventID() == SystemActivityEvent.EVENT_DNS_CHANGE))
+ {
+ logger.info("Received system activity event: " + evt);
+ }
+
// give time to java to dispatch same
// event and populate its network interfaces
- if(evt.getEventID() == SystemActivityEvent.EVENT_NETWORK_CHANGE
- && OSUtils.IS_WINDOWS)
+ if(evt.getEventID() == SystemActivityEvent.EVENT_NETWORK_CHANGE)
{
eventDispatcher.fireSystemActivityEvent(evt, 500);
}
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();