RSS-26: Logging tweaks

This commit is contained in:
Kip Gebhardt 2015-06-11 17:26:35 -07:00
parent 701af133ab
commit ec0b1e8ad5

View File

@ -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;
}
}