From 8422bf48dd003978b3415330cfe075edf40744e9 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Thu, 10 Apr 2008 14:46:02 +0000 Subject: [PATCH] Bug 223076 Debug traces were printed for out-of-band events when they were processed (processEvent()) and again when the next ResultRecord is received (processCommandDone()). This fix only prints the ResultRecord in the processCommandDone() method. --- .../org/eclipse/dd/mi/service/command/AbstractMIControl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/command/AbstractMIControl.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/command/AbstractMIControl.java index ec0b560af14..32a9e2f04f0 100644 --- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/command/AbstractMIControl.java +++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/command/AbstractMIControl.java @@ -350,7 +350,9 @@ public abstract class AbstractMIControl extends AbstractDsfService if ( result != null ) { MIInfo cmdResult = (MIInfo) result ; MIOutput output = cmdResult.getMIOutput(); - MIPlugin.debug(MIPlugin.getDebugTime() + " " + output + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ + // Only print the result record and not the out-of-band records. + // Out-of-band records have already been printed in processEvent() + MIPlugin.debug(MIPlugin.getDebugTime() + " " + output.getMIResultRecord() + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ } else {