switched to using global logger
This commit is contained in:
parent
f3d1cc50c0
commit
ae5c5c5e3a
|
@ -12,7 +12,7 @@ import javax.swing.SwingWorker;
|
|||
|
||||
public class ChecksumComputationTask extends SwingWorker<Long, Object> {
|
||||
|
||||
private static final int CHUNK_SIZE = 20 * 1024;
|
||||
private static final int CHUNK_SIZE = 32 * 1024;
|
||||
|
||||
private File file;
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ public abstract class FileTransferablePolicy extends TransferablePolicy {
|
|||
if (file.exists())
|
||||
files.add(file);
|
||||
} catch (URISyntaxException e) {
|
||||
Logger.getAnonymousLogger().log(Level.WARNING, "Invalid file url: " + line, e);
|
||||
Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).log(Level.WARNING, "Invalid file url: " + line, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ public class AnidbClient extends EpisodeListClient {
|
|||
cache.put(title, url);
|
||||
shows.add(title);
|
||||
} catch (MalformedURLException e) {
|
||||
Logger.getAnonymousLogger().log(Level.WARNING, "Invalid href: " + href, e);
|
||||
Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).log(Level.WARNING, "Invalid href: " + href, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ public class ImdbSearchEngine {
|
|||
try {
|
||||
movies.add(parseMovie(node));
|
||||
} catch (Exception e) {
|
||||
Logger.getAnonymousLogger().log(Level.WARNING, "Invalid movie node", e);
|
||||
Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).log(Level.WARNING, "Invalid movie node", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ public class TVRageClient extends EpisodeListClient {
|
|||
cache.put(title, url);
|
||||
shows.add(title);
|
||||
} catch (MalformedURLException e) {
|
||||
Logger.getAnonymousLogger().log(Level.WARNING, "Invalid href: " + href, e);
|
||||
Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).log(Level.WARNING, "Invalid href: " + href, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ public class TvdotcomClient extends EpisodeListClient {
|
|||
cache.put(title, url);
|
||||
shows.add(title);
|
||||
} catch (MalformedURLException e) {
|
||||
Logger.getAnonymousLogger().log(Level.WARNING, "Invalid href: " + href, e);
|
||||
Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).log(Level.WARNING, "Invalid href: " + href, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -118,6 +118,7 @@ public class TvdotcomClient extends EpisodeListClient {
|
|||
}
|
||||
|
||||
|
||||
@Override
|
||||
public URL getEpisodeListUrl(String showname, int season) {
|
||||
try {
|
||||
String summaryFile = cache.get(showname).getFile();
|
||||
|
|
Loading…
Reference in New Issue