mirror of
https://gitlab.silvrtree.co.uk/martind2000/rss-braider.git
synced 2025-01-10 23:45:07 +00:00
RSS-26: Logging tweaks
This commit is contained in:
parent
701af133ab
commit
ec0b1e8ad5
@ -109,7 +109,7 @@ RssBraider.prototype.processFeed = function(feed_name, format, callback)
|
||||
}
|
||||
|
||||
feedparser.on('error', function(error) {
|
||||
self.logger.error("feedparser error:", error, "name:", source.name, "source:", source.feed_url);
|
||||
self.logger.error("feedparser",", source.name:", source.name, ", url:", source.feed_url, error.stack);
|
||||
});
|
||||
|
||||
// Collect the articles from this source
|
||||
@ -228,7 +228,8 @@ RssBraider.prototype.runPlugins = function (item, itemOptions, source, feed_name
|
||||
|
||||
// If itemOptions comes back null, skip this item as one of the plugins decided to toss it
|
||||
if (itemOptions === null) {
|
||||
self.logger.debug("Plugin '" + plugin_name + "' filtered out item: '" + item.title + "' from feed '" + feed.meta.title + "'");
|
||||
var short_title = item.title.substring(0,25);
|
||||
self.logger.debug("Plugin '" + plugin_name + "' filtered item from feed '" + feed.meta.title + "'", item.guid);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user