summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreger <reger18@arcor.de>2015-03-28 21:12:00 +0100
committerreger <reger18@arcor.de>2015-03-28 21:12:00 +0100
commit96292cf3eb6473c6b73df410b9ca3ce81ef579ca (patch)
treea1473c0274c794dc92fe0a14008ba02e4b5e2f37
parent839b962c2092c65454bacbdadd0b2b3db2a83d1f (diff)
shorten exception loggin on not available connection in Load_RSS_p servlet
-rw-r--r--htroot/Load_RSS_p.java5
1 files 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