aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/services/XBasicService.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/services/XBasicService.java
parentfcd5c4c69fc5ea84b04f309eb40e295eab921fd8 (diff)
Introduced logging bottleneck
Diffstat (limited to 'netx/net/sourceforge/jnlp/services/XBasicService.java')
-rw-r--r--netx/net/sourceforge/jnlp/services/XBasicService.java16
1 files changed, 7 insertions, 9 deletions
diff --git a/netx/net/sourceforge/jnlp/services/XBasicService.java b/netx/net/sourceforge/jnlp/services/XBasicService.java
index d8c1388..007312f 100644
--- a/netx/net/sourceforge/jnlp/services/XBasicService.java
+++ b/netx/net/sourceforge/jnlp/services/XBasicService.java
@@ -33,6 +33,7 @@ import net.sourceforge.jnlp.Launcher;
import net.sourceforge.jnlp.config.DeploymentConfiguration;
import net.sourceforge.jnlp.runtime.ApplicationInstance;
import net.sourceforge.jnlp.runtime.JNLPRuntime;
+import net.sourceforge.jnlp.util.logging.OutputController;
/**
* The BasicService JNLP service.
@@ -180,8 +181,7 @@ class XBasicService implements BasicService {
return true;
} catch (IOException ex) {
- if (JNLPRuntime.isDebug())
- ex.printStackTrace();
+ OutputController.getLogger().log(ex);
}
}
@@ -193,9 +193,7 @@ class XBasicService implements BasicService {
return;
initialized = true;
initializeBrowserCommand();
- if (JNLPRuntime.isDebug()) {
- System.out.println("browser is " + command);
- }
+ OutputController.getLogger().log("browser is " + command);
}
/**
@@ -228,7 +226,7 @@ class XBasicService implements BasicService {
try {
config.save();
} catch (IOException e) {
- e.printStackTrace();
+ OutputController.getLogger().log(OutputController.Level.ERROR_ALL, e);
}
break;
}
@@ -245,7 +243,7 @@ class XBasicService implements BasicService {
try {
config.save();
} catch (IOException e) {
- e.printStackTrace();
+ OutputController.getLogger().log(OutputController.Level.ERROR_ALL, e);
}
}
}
@@ -272,10 +270,10 @@ class XBasicService implements BasicService {
p.waitFor();
return (p.exitValue() == 0);
} catch (IOException e) {
- e.printStackTrace();
+ OutputController.getLogger().log(OutputController.Level.ERROR_ALL, e);
return false;
} catch (InterruptedException e) {
- e.printStackTrace();
+ OutputController.getLogger().log(OutputController.Level.ERROR_ALL, e);
return false;
}
}