Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2014-02-08 10:52:37 -0500
committerUwe Stieber2014-02-08 10:52:37 -0500
commited5690be31553fe4a65cbcfd83062c58ed58b134 (patch)
tree5aaf015cb1c80ac5bc1adae5e710f82a3fc09312
parent533ba62a4a854ac66449c2b0f72abeb8b0af1f47 (diff)
downloadorg.eclipse.tcf-ed5690be31553fe4a65cbcfd83062c58ed58b134.tar.gz
org.eclipse.tcf-ed5690be31553fe4a65cbcfd83062c58ed58b134.tar.xz
org.eclipse.tcf-ed5690be31553fe4a65cbcfd83062c58ed58b134.zip
Target Explorer: Improve Eclipse command server logging
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.log.core/src/org/eclipse/tcf/te/tcf/log/core/internal/listener/ChannelTraceListener.java8
1 files changed, 6 insertions, 2 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 ee0fdc17f..316ca59e4 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
@@ -44,6 +44,8 @@ public class ChannelTraceListener implements TraceListener {
// Reference to the channel
private final IChannel channel;
+ private final boolean reverseReceived;
+
/**
* Constructor.
*
@@ -52,6 +54,8 @@ public class ChannelTraceListener implements TraceListener {
public ChannelTraceListener(IChannel channel) {
Assert.isNotNull(channel);
this.channel = channel;
+
+ reverseReceived = channel.getRemotePeer().getName().endsWith("Command Server"); //$NON-NLS-1$
}
/**
@@ -98,7 +102,7 @@ public class ChannelTraceListener implements TraceListener {
ITracing.ID_TRACE_CHANNEL_TRACE_LISTENER, this);
}
- doLogMessage(type, token, service, name, data, true);
+ doLogMessage(type, token, service, name, data, reverseReceived ? false : true);
}
/* (non-Javadoc)
@@ -112,7 +116,7 @@ public class ChannelTraceListener implements TraceListener {
ITracing.ID_TRACE_CHANNEL_TRACE_LISTENER, this);
}
- doLogMessage(type, token, service, name, data, false);
+ doLogMessage(type, token, service, name, data, reverseReceived ? true : false);
}
/**

Back to the top