1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-22 07:48:52 -05:00

switched to using global logger

This commit is contained in:
Reinhard Pointner 2008-02-11 19:36:59 +00:00
parent f3d1cc50c0
commit ae5c5c5e3a
6 changed files with 8 additions and 7 deletions

View File

@ -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;

View 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);
}
}

View File

@ -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);
}
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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,7 +118,8 @@ public class TvdotcomClient extends EpisodeListClient {
}
public URL getEpisodeListUrl(String showname, int season) {
@Override
public URL getEpisodeListUrl(String showname, int season) {
try {
String summaryFile = cache.get(showname).getFile();