mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
format message
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user