diff options
author | Jiri Vanek <[email protected]> | 2013-09-25 18:50:18 +0200 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2013-09-25 18:50:18 +0200 |
commit | 19e74fe5dacd03e0cb5582f840e15262e39fe24f (patch) | |
tree | 38ffc4f47f7641f8d20ba0e0e8a97a97ffb1db64 /plugin/icedteanp/java/sun/applet/PluginStreamHandler.java | |
parent | fcd5c4c69fc5ea84b04f309eb40e295eab921fd8 (diff) |
Introduced logging bottleneck
Diffstat (limited to 'plugin/icedteanp/java/sun/applet/PluginStreamHandler.java')
-rw-r--r-- | plugin/icedteanp/java/sun/applet/PluginStreamHandler.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginStreamHandler.java b/plugin/icedteanp/java/sun/applet/PluginStreamHandler.java index e351aef..fb23755 100644 --- a/plugin/icedteanp/java/sun/applet/PluginStreamHandler.java +++ b/plugin/icedteanp/java/sun/applet/PluginStreamHandler.java @@ -48,6 +48,8 @@ import java.net.MalformedURLException; import java.nio.charset.Charset; import javax.swing.SwingUtilities; +import net.sourceforge.jnlp.runtime.JNLPRuntime; +import net.sourceforge.jnlp.util.logging.OutputController; public class PluginStreamHandler { @@ -103,7 +105,7 @@ public class PluginStreamHandler { } AppletSecurityContextManager.dumpStore(0); PluginDebug.debug("APPLETVIEWER: exiting appletviewer"); - System.exit(0); + JNLPRuntime.exit(0); } } } @@ -332,10 +334,10 @@ public class PluginStreamHandler { } AppletSecurityContextManager.dumpStore(0); PluginDebug.debug("APPLETVIEWER: exiting appletviewer"); - System.exit(0); + JNLPRuntime.exit(0); } } catch (IOException e) { - e.printStackTrace(); + OutputController.getLogger().log(OutputController.Level.ERROR_ALL,e); } return message; @@ -360,13 +362,13 @@ public class PluginStreamHandler { // if we are shutting down, ignore write failures as // pipe may have closed if (!shuttingDown) { - e.printStackTrace(); + OutputController.getLogger().log(OutputController.Level.ERROR_ALL,e); } // either ways, if the pipe is broken, there is nothing // we can do anymore. Don't hang around. PluginDebug.debug("Unable to write to PIPE. APPLETVIEWER exiting"); - System.exit(1); + JNLPRuntime.exit(1); } } |