aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/java/sun/applet/PluginDebug.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/icedteanp/java/sun/applet/PluginDebug.java')
-rw-r--r--plugin/icedteanp/java/sun/applet/PluginDebug.java7
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());
}
}
}