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/PluginDebug.java | |
parent | fcd5c4c69fc5ea84b04f309eb40e295eab921fd8 (diff) |
Introduced logging bottleneck
Diffstat (limited to 'plugin/icedteanp/java/sun/applet/PluginDebug.java')
-rw-r--r-- | plugin/icedteanp/java/sun/applet/PluginDebug.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginDebug.java b/plugin/icedteanp/java/sun/applet/PluginDebug.java index 54787a4..8de96f1 100644 --- a/plugin/icedteanp/java/sun/applet/PluginDebug.java +++ b/plugin/icedteanp/java/sun/applet/PluginDebug.java @@ -37,9 +37,12 @@ exception statement from your version. */ package sun.applet; +import net.sourceforge.jnlp.runtime.JNLPRuntime; +import net.sourceforge.jnlp.util.logging.OutputController; + public class PluginDebug { - static final boolean DEBUG = System.getenv().containsKey("ICEDTEAPLUGIN_DEBUG"); + static final boolean DEBUG = JNLPRuntime.isPluginDebug(); public static void debug(Object... messageChunks) { if (DEBUG) { @@ -50,7 +53,7 @@ public class PluginDebug { for (Object chunk : messageChunks) { b.append(chunk); } - System.err.println(b.toString()); + OutputController.getLogger().log(OutputController.Level.ERROR_ALL, b.toString()); } } } |