Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Pazderski2019-12-04 09:31:16 +0000
committerPaul Pazderski2019-12-11 15:45:27 +0000
commit66d739ac9191532640d4cdf90e3a1e9f7e1f06a8 (patch)
treea64017438938f92d4cc2580f57e9981d9ea89977
parent2b7eef1df484966135d06f39addf2d613e11904f (diff)
downloadeclipse.platform.debug-66d739ac9191532640d4cdf90e3a1e9f7e1f06a8.tar.gz
eclipse.platform.debug-66d739ac9191532640d4cdf90e3a1e9f7e1f06a8.tar.xz
eclipse.platform.debug-66d739ac9191532640d4cdf90e3a1e9f7e1f06a8.zip
Bug 553753 - [console] Provide stacktrace if partitioner stream closedI20191216-1805I20191215-1800I20191214-1800I20191213-1805
is called twice Change-Id: I7ce2f14e1dc14328d9bfdf7e7c126f47c5674ded Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
-rw-r--r--org.eclipse.ui.console/src/org/eclipse/ui/internal/console/IOConsolePartitioner.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/IOConsolePartitioner.java b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/IOConsolePartitioner.java
index d2f6fbc4b..003fe054a 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/IOConsolePartitioner.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/IOConsolePartitioner.java
@@ -265,7 +265,8 @@ public class IOConsolePartitioner
*/
public void streamsClosed() {
if (streamsClosed) {
- log(IStatus.ERROR, "Streams are already closed."); //$NON-NLS-1$
+ String msg = "Streams are already closed.";//$NON-NLS-1$
+ log(IStatus.ERROR, msg, new IllegalStateException(msg));
return;
}
streamsClosed = true;
@@ -1381,6 +1382,10 @@ public class IOConsolePartitioner
ConsolePlugin.log(new Status(status, ConsolePlugin.getUniqueIdentifier(), msg));
}
+ private static void log(int status, String msg, Throwable t) {
+ ConsolePlugin.log(new Status(status, ConsolePlugin.getUniqueIdentifier(), msg, t));
+ }
+
/**
* For debug purpose. Check if whole document is partitioned, partitions are
* ordered by offset, every partition has length greater 0 and all writable

Back to the top