aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/JNLPFile.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/JNLPFile.java
parentfcd5c4c69fc5ea84b04f309eb40e295eab921fd8 (diff)
Introduced logging bottleneck
Diffstat (limited to 'netx/net/sourceforge/jnlp/JNLPFile.java')
-rw-r--r--netx/net/sourceforge/jnlp/JNLPFile.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/netx/net/sourceforge/jnlp/JNLPFile.java b/netx/net/sourceforge/jnlp/JNLPFile.java
index 3577482..9f38d4b 100644
--- a/netx/net/sourceforge/jnlp/JNLPFile.java
+++ b/netx/net/sourceforge/jnlp/JNLPFile.java
@@ -31,6 +31,7 @@ import java.util.Locale;
import net.sourceforge.jnlp.cache.ResourceTracker;
import net.sourceforge.jnlp.cache.UpdatePolicy;
import net.sourceforge.jnlp.runtime.JNLPRuntime;
+import net.sourceforge.jnlp.util.logging.OutputController;
/**
* Provides methods to access the information in a Java Network
@@ -223,8 +224,7 @@ public class JNLPFile {
((int)(Math.random()*Integer.MAX_VALUE)) + "-" +
location;
- if (JNLPRuntime.isDebug())
- System.err.println("UNIQUEKEY=" + this.uniqueKey);
+ OutputController.getLogger().log(OutputController.Level.ERROR_DEBUG, "UNIQUEKEY=" + this.uniqueKey);
}
/**
@@ -243,8 +243,7 @@ public class JNLPFile {
this(location, version, settings, policy);
this.uniqueKey = uniqueKey;
- if (JNLPRuntime.isDebug())
- System.err.println("UNIQUEKEY (override) =" + this.uniqueKey);
+ OutputController.getLogger().log(OutputController.Level.ERROR_DEBUG, "UNIQUEKEY (override) =" + this.uniqueKey);
}
/**
@@ -714,9 +713,7 @@ public class JNLPFile {
} catch (ParseException ex) {
throw ex;
} catch (Exception ex) {
- if (JNLPRuntime.isDebug())
- ex.printStackTrace();
-
+ OutputController.getLogger().log(ex);
throw new RuntimeException(ex.toString());
}
}