aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/GuiLaunchHandler.java
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-09-25 18:50:18 +0200
committerJiri Vanek <[email protected]>2013-09-25 18:50:18 +0200
commit19e74fe5dacd03e0cb5582f840e15262e39fe24f (patch)
tree38ffc4f47f7641f8d20ba0e0e8a97a97ffb1db64 /netx/net/sourceforge/jnlp/GuiLaunchHandler.java
parentfcd5c4c69fc5ea84b04f309eb40e295eab921fd8 (diff)
Introduced logging bottleneck
Diffstat (limited to 'netx/net/sourceforge/jnlp/GuiLaunchHandler.java')
-rw-r--r--netx/net/sourceforge/jnlp/GuiLaunchHandler.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/netx/net/sourceforge/jnlp/GuiLaunchHandler.java b/netx/net/sourceforge/jnlp/GuiLaunchHandler.java
index 74960f0..5f1180b 100644
--- a/netx/net/sourceforge/jnlp/GuiLaunchHandler.java
+++ b/netx/net/sourceforge/jnlp/GuiLaunchHandler.java
@@ -37,7 +37,6 @@ exception statement from your version. */
package net.sourceforge.jnlp;
-import java.io.PrintStream;
import java.lang.reflect.InvocationTargetException;
import java.net.URL;
@@ -47,6 +46,7 @@ import net.sourceforge.jnlp.cache.ResourceTracker;
import net.sourceforge.jnlp.cache.UpdatePolicy;
import net.sourceforge.jnlp.runtime.ApplicationInstance;
import net.sourceforge.jnlp.util.BasicExceptionDialog;
+import net.sourceforge.jnlp.util.logging.OutputController;
/**
* A {@link LaunchHandler} that gives feedback to the user using GUI elements
@@ -58,7 +58,7 @@ public class GuiLaunchHandler extends AbstractLaunchHandler {
private final Object mutex = new Object();
private UpdatePolicy policy = UpdatePolicy.ALWAYS;
- public GuiLaunchHandler(PrintStream outputStream) {
+ public GuiLaunchHandler(OutputController outputStream) {
super(outputStream);
}
@@ -127,7 +127,7 @@ public class GuiLaunchHandler extends AbstractLaunchHandler {
// Wait till splash screen is created
while (splashScreen == null);
} catch (InvocationTargetException ite) {
- ite.printStackTrace();
+ OutputController.getLogger().log(OutputController.Level.ERROR_ALL, ite);
}
try {
SwingUtilities.invokeAndWait(new Runnable() {
@@ -141,7 +141,7 @@ public class GuiLaunchHandler extends AbstractLaunchHandler {
// Wait till splash screen is created
while (!splashScreen.isSplashImageLoaded());
} catch (InvocationTargetException ite) {
- ite.printStackTrace();
+ OutputController.getLogger().log(OutputController.Level.ERROR_ALL, ite);
}