git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug when moving an unopened book in GUI
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix
/
Cache.java
diff --git
a/src/be/nikiroo/fanfix/Cache.java
b/src/be/nikiroo/fanfix/Cache.java
index 9983d78fa71a761dda58800e505f49798d384a05..383fa7c87a8cdd3f40b1041c9ac49e5d091e0189 100644
(file)
--- a/
src/be/nikiroo/fanfix/Cache.java
+++ b/
src/be/nikiroo/fanfix/Cache.java
@@
-141,10
+141,8
@@
public class Cache {
// MUST NOT return null
try {
InputStream in = load(originalUrl, false, stable);
// MUST NOT return null
try {
InputStream in = load(originalUrl, false, stable);
- if (Instance.isDebug()) {
- System.err.println("Cache " + (in != null ? "hit" : "miss")
- + ": " + url);
- }
+ Instance.trace("Cache " + (in != null ? "hit" : "miss") + ": "
+ + url);
if (in == null) {
if (in == null) {
@@
-226,7
+224,7
@@
public class Cache {
* @param getParams
* the GET parameters (priority over POST)
* @param oauth
* @param getParams
* the GET parameters (priority over POST)
* @param oauth
- * OAuth authori
z
ation (aka, "bearer XXXXXXX")
+ * OAuth authori
s
ation (aka, "bearer XXXXXXX")
* @return the {@link InputStream} of the opened page
*
* @throws IOException
* @return the {@link InputStream} of the opened page
*
* @throws IOException
@@
-236,9
+234,7
@@
public class Cache {
final URL originalUrl, Map<String, String> postParams,
Map<String, String> getParams, String oauth) throws IOException {
final URL originalUrl, Map<String, String> postParams,
Map<String, String> getParams, String oauth) throws IOException {
- if (Instance.isDebug()) {
- System.err.println("Open no cache: " + url);
- }
+ Instance.trace("Open no cache: " + url);
URLConnection conn = openConnectionWithCookies(url, support);
if (support != null) {
URLConnection conn = openConnectionWithCookies(url, support);
if (support != null) {