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.setMessage(null);
feed.setErrorCount(0); feed.setErrorCount(0);
} catch (Exception e) { } catch (Exception e) {
log.info("Unable to refresh feed " + feed.getUrl() + " : " String message = "Unable to refresh feed " + feed.getUrl() + " : "
+ e.getMessage()); + e.getMessage();
feed.setMessage("Unable to refresh feed: " + e.getMessage()); log.info(e.getClass() + " " + message);
feed.setMessage(message);
feed.setErrorCount(feed.getErrorCount() + 1); feed.setErrorCount(feed.getErrorCount() + 1);
} finally { } finally {
feed.setLastUpdated(Calendar.getInstance().getTime()); feed.setLastUpdated(Calendar.getInstance().getTime());