From 47cd4a8a2dc1060590ced27d444e56b960ddcb66 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 21 Jul 2012 20:32:45 +0000 Subject: [PATCH] * don't show annoying logging by default --- .../sourceforge/filebot/web/OpenSubtitlesXmlRpc.java | 7 +++---- source/net/sourceforge/filebot/web/TMDbClient.java | 10 +++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/source/net/sourceforge/filebot/web/OpenSubtitlesXmlRpc.java b/source/net/sourceforge/filebot/web/OpenSubtitlesXmlRpc.java index 03eb09ce..dca2d84c 100644 --- a/source/net/sourceforge/filebot/web/OpenSubtitlesXmlRpc.java +++ b/source/net/sourceforge/filebot/web/OpenSubtitlesXmlRpc.java @@ -24,14 +24,13 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.zip.DeflaterInputStream; +import net.sourceforge.filebot.web.OpenSubtitlesSubtitleDescriptor.Property; +import net.sourceforge.tuned.ByteBufferOutputStream; import redstone.xmlrpc.XmlRpcClient; import redstone.xmlrpc.XmlRpcException; import redstone.xmlrpc.XmlRpcFault; import redstone.xmlrpc.util.Base64; -import net.sourceforge.filebot.web.OpenSubtitlesSubtitleDescriptor.Property; -import net.sourceforge.tuned.ByteBufferOutputStream; - public class OpenSubtitlesXmlRpc { @@ -146,7 +145,7 @@ public class OpenSubtitlesXmlRpc { movies.add(new Movie(name, year, Integer.parseInt(imdbid))); } catch (Exception e) { - Logger.getLogger(OpenSubtitlesXmlRpc.class.getName()).log(Level.INFO, String.format("Ignore movie [%s]: %s", movie, e.getMessage())); + Logger.getLogger(OpenSubtitlesXmlRpc.class.getName()).log(Level.FINE, String.format("Ignore movie [%s]: %s", movie, e.getMessage())); } } diff --git a/source/net/sourceforge/filebot/web/TMDbClient.java b/source/net/sourceforge/filebot/web/TMDbClient.java index c0bc08bc..8e67f925 100644 --- a/source/net/sourceforge/filebot/web/TMDbClient.java +++ b/source/net/sourceforge/filebot/web/TMDbClient.java @@ -26,15 +26,15 @@ import java.util.logging.Logger; import javax.swing.Icon; -import org.w3c.dom.Document; -import org.w3c.dom.Node; -import org.xml.sax.SAXException; - import net.sourceforge.filebot.ResourceManager; import net.sourceforge.filebot.web.TMDbClient.Artwork.ArtworkProperty; import net.sourceforge.filebot.web.TMDbClient.MovieInfo.MovieProperty; import net.sourceforge.filebot.web.TMDbClient.Person.PersonProperty; +import org.w3c.dom.Document; +import org.w3c.dom.Node; +import org.xml.sax.SAXException; + public class TMDbClient implements MovieIdentificationService { @@ -134,7 +134,7 @@ public class TMDbClient implements MovieIdentificationService { result.add(new Movie(name, year, imdbid)); } catch (Exception e) { - Logger.getLogger(TMDbClient.class.getName()).log(Level.INFO, String.format("Ignore movie [%s]: %s", name, e.getMessage())); + Logger.getLogger(TMDbClient.class.getName()).log(Level.FINE, String.format("Ignore movie [%s]: %s", name, e.getMessage())); } }