From 4c16d1fd9684d8e120144b0590c2e3d7ecdd806a Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Sat, 4 Nov 2006 23:07:49 -0500 Subject: [PATCH] Fix typo and cleanup log message --- planet/reconstitute.py | 2 +- planet/spider.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/planet/reconstitute.py b/planet/reconstitute.py index 0f12889..6000668 100644 --- a/planet/reconstitute.py +++ b/planet/reconstitute.py @@ -244,7 +244,7 @@ def reconstitute(feed, entry): src_author = src.get('author_detail',{}) if (not author_detail or not author_detail.has_key('name')) and \ not src_author.has_key('name') and feed.feed.has_key('planet_name'): - if src_author: src_author - src_author.__class__(src_author.copy()) + if src_author: src_author = src_author.__class__(src_author.copy()) src['author_detail'] = src_author src_author['name'] = feed.feed['planet_name'] source(xsource, src, bozo, feed.version) diff --git a/planet/spider.py b/planet/spider.py index 7e6d91b..447b166 100644 --- a/planet/spider.py +++ b/planet/spider.py @@ -159,7 +159,10 @@ def spiderFeed(feed, only_if_new=0): # process based on the HTTP status code if data.status == 200 and data.has_key("url"): data.feed['planet_http_location'] = data.url - log.info("Updating feed %s @ %s", feed, data.url) + if feed == data.url: + log.info("Updating feed %s", feed) + else: + log.info("Updating feed %s @ %s", feed, data.url) elif data.status == 301 and data.has_key("entries") and len(data.entries)>0: log.warning("Feed has moved from <%s> to <%s>", feed, data.url) data.feed['planet_http_location'] = data.url