aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/AbstractLaunchHandler.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/AbstractLaunchHandler.java
parentfcd5c4c69fc5ea84b04f309eb40e295eab921fd8 (diff)
Introduced logging bottleneck
Diffstat (limited to 'netx/net/sourceforge/jnlp/AbstractLaunchHandler.java')
-rw-r--r--netx/net/sourceforge/jnlp/AbstractLaunchHandler.java16
1 files changed, 7 insertions, 9 deletions
diff --git a/netx/net/sourceforge/jnlp/AbstractLaunchHandler.java b/netx/net/sourceforge/jnlp/AbstractLaunchHandler.java
index c9d5d70..aeff92e 100644
--- a/netx/net/sourceforge/jnlp/AbstractLaunchHandler.java
+++ b/netx/net/sourceforge/jnlp/AbstractLaunchHandler.java
@@ -37,16 +37,15 @@ exception statement from your version. */
package net.sourceforge.jnlp;
-import java.io.PrintStream;
-import net.sourceforge.jnlp.runtime.JNLPRuntime;
+import net.sourceforge.jnlp.util.logging.OutputController;
public abstract class AbstractLaunchHandler implements LaunchHandler {
- protected final PrintStream outputStream;
+ protected final OutputController logger;
- public AbstractLaunchHandler(PrintStream outputStream) {
- this.outputStream = outputStream;
+ public AbstractLaunchHandler(OutputController logger) {
+ this.logger = logger;
}
/**
@@ -63,11 +62,10 @@ public abstract class AbstractLaunchHandler implements LaunchHandler {
if (ex.getCause() != null) {
result.append(recursiveDescription(ex.getCause()));
}
- outputStream.println(result);
+ logger.log(OutputController.Level.MESSAGE_ALL, result.toString());
- if (JNLPRuntime.isDebug()) {
- ex.printStackTrace(outputStream);
- }
+ logger.log(ex);
+
}
private String recursiveDescription(Throwable throwable) {