aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/security/SecurityDialogMessageHandler.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/security/SecurityDialogMessageHandler.java
parentfcd5c4c69fc5ea84b04f309eb40e295eab921fd8 (diff)
Introduced logging bottleneck
Diffstat (limited to 'netx/net/sourceforge/jnlp/security/SecurityDialogMessageHandler.java')
-rw-r--r--netx/net/sourceforge/jnlp/security/SecurityDialogMessageHandler.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/netx/net/sourceforge/jnlp/security/SecurityDialogMessageHandler.java b/netx/net/sourceforge/jnlp/security/SecurityDialogMessageHandler.java
index 2fbcb5b..a2f9588 100644
--- a/netx/net/sourceforge/jnlp/security/SecurityDialogMessageHandler.java
+++ b/netx/net/sourceforge/jnlp/security/SecurityDialogMessageHandler.java
@@ -45,6 +45,7 @@ import java.util.concurrent.LinkedBlockingQueue;
import sun.awt.AppContext;
import net.sourceforge.jnlp.runtime.JNLPRuntime;
+import net.sourceforge.jnlp.util.logging.OutputController;
/**
* Handles {@link SecurityDialogMessage}s and shows appropriate security
@@ -72,9 +73,7 @@ public final class SecurityDialogMessageHandler implements Runnable {
*/
@Override
public void run() {
- if (JNLPRuntime.isDebug()) {
- System.out.println("Starting security dialog thread");
- }
+ OutputController.getLogger().log("Starting security dialog thread");
while (true) {
try {
SecurityDialogMessage msg = queue.take();
@@ -134,7 +133,7 @@ public final class SecurityDialogMessageHandler implements Runnable {
try {
queue.put(message);
} catch (InterruptedException e) {
- e.printStackTrace();
+ OutputController.getLogger().log(OutputController.Level.ERROR_ALL, e);
}
}