Author: mes
Date: 2010-09-15 10:11:47 -0700 (Wed, 15 Sep 2010)
New Revision: 21861
Modified:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
Log:
added logging for an exception
Modified:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
===================================================================
---
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
2010-09-15 17:09:30 UTC (rev 21860)
+++
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
2010-09-15 17:11:47 UTC (rev 21861)
@@ -20,6 +20,8 @@
import javax.swing.JPanel;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* Uses Swing components to create a user interface for the <code>Task</code>.
@@ -29,6 +31,8 @@
public class SwingTaskManager extends AbstractTaskManager implements
GUITaskManager {
private SwingTaskMonitor taskMonitor;
+ private static final Logger logger =
LoggerFactory.getLogger(SwingTaskManager.class);
+
/**
* The delay between the execution of the <code>Task</code> and
* showing its task dialog.
@@ -149,6 +153,7 @@
break;
}
} catch (Exception exception) {
+ logger.warn("Caught exception executing
task. ", exception);
if (taskMonitor == null)
taskMonitor = new
SwingTaskMonitor(cancelExecutorService, owner);
taskMonitor.showException(exception);
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.