Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2014-08-07 10:35:48 -0400
committerUwe Stieber2014-08-07 10:35:48 -0400
commit66d323d781b621e91102735cda188ead6a3312d3 (patch)
tree8941b9e54b6870620c62f92da7e50bfce7ec0d2a
parent99d31d18a85c80e465015b7eb929029ad6f98cc5 (diff)
downloadorg.eclipse.tcf-66d323d781b621e91102735cda188ead6a3312d3.tar.gz
org.eclipse.tcf-66d323d781b621e91102735cda188ead6a3312d3.tar.xz
org.eclipse.tcf-66d323d781b621e91102735cda188ead6a3312d3.zip
Target Explorer: Filter "ping" messages from communication logs
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.log.core/src/org/eclipse/tcf/te/tcf/log/core/internal/listener/ChannelTraceListener.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.log.core/src/org/eclipse/tcf/te/tcf/log/core/internal/listener/ChannelTraceListener.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.log.core/src/org/eclipse/tcf/te/tcf/log/core/internal/listener/ChannelTraceListener.java
index 780ae9be0..71de49185 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.log.core/src/org/eclipse/tcf/te/tcf/log/core/internal/listener/ChannelTraceListener.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.log.core/src/org/eclipse/tcf/te/tcf/log/core/internal/listener/ChannelTraceListener.java
@@ -160,7 +160,8 @@ public class ChannelTraceListener implements TraceListener {
String args = JSONUtils.decodeStringFromByteArray(data);
// Filter out 'Diagnostic echo "ping"' and response
- if (type == 'C' && IDiagnostics.NAME.equals(service) && "echo".equals(name) && "ping".equals(args)) { //$NON-NLS-1$ //$NON-NLS-2$
+ if ((type == 'C' && IDiagnostics.NAME.equals(service) && "echo".equals(name) && "\"ping\"".equals(args)) //$NON-NLS-1$ //$NON-NLS-2$
+ || (type == 'R' && service == null && name == null && "\"ping\"".equals(args))) { //$NON-NLS-1$
return;
}

Back to the top