format message

This commit is contained in:
Athou
2013-04-11 12:57:21 +02:00
parent 25dd0aab51
commit 36a9a7a795

View File

@@ -47,9 +47,10 @@ public class FeedUpdater {
feed.setMessage(null);
feed.setErrorCount(0);
} catch (Exception e) {
log.info("Unable to refresh feed " + feed.getUrl() + " : "
+ e.getMessage());
feed.setMessage("Unable to refresh feed: " + e.getMessage());
String message = "Unable to refresh feed " + feed.getUrl() + " : "
+ e.getMessage();
log.info(e.getClass() + " " + message);
feed.setMessage(message);
feed.setErrorCount(feed.getErrorCount() + 1);
} finally {
feed.setLastUpdated(Calendar.getInstance().getTime());