From 96292cf3eb6473c6b73df410b9ca3ce81ef579ca Mon Sep 17 00:00:00 2001 From: reger Date: Sat, 28 Mar 2015 21:12:00 +0100 Subject: [PATCH] shorten exception loggin on not available connection in Load_RSS_p servlet --- htroot/Load_RSS_p.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htroot/Load_RSS_p.java b/htroot/Load_RSS_p.java index 5f04ca734..3cb2a06fc 100644 --- a/htroot/Load_RSS_p.java +++ b/htroot/Load_RSS_p.java @@ -262,7 +262,7 @@ public class Load_RSS_p { try { url = post.containsKey("url") ? new DigestURL(post.get("url", "")) : null; } catch (final MalformedURLException e) { - ConcurrentLog.warn("Load_RSS_p", "url not well-formed: '" + post.get("url", "") + "'"); + ConcurrentLog.warn("Load_RSS", "url not well-formed: '" + post.get("url", "") + "'"); } ClientIdentification.Agent agent = post == null ? ClientIdentification.yacyInternetCrawlerAgent : ClientIdentification.getAgent(post.get("agentName", ClientIdentification.yacyInternetCrawlerAgentName)); @@ -275,7 +275,8 @@ public class Load_RSS_p { final byte[] resource = response == null ? null : response.getContent(); rss = resource == null ? null : RSSReader.parse(RSSFeed.DEFAULT_MAXSIZE, resource); } catch (final IOException e) { - ConcurrentLog.logException(e); + ConcurrentLog.warn("Load_RSS", e.getMessage()); + return prop; // if no response nothing to process further } // index all selected items: description only