From e9db4ebd58d909b79713bad168605195272bfdaf Mon Sep 17 00:00:00 2001 From: Stephen Frost Date: Fri, 5 May 2023 16:17:50 -0400 Subject: [PATCH] Add to log message the old blogurl For debugging, it's helpful to know what the old value was of a given blogurl, to make sure we are updating things correctly and only what should be getting updated is getting updated. --- .../hamnadmin/register/management/commands/aggregate_feeds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hamnadmin/hamnadmin/register/management/commands/aggregate_feeds.py b/hamnadmin/hamnadmin/register/management/commands/aggregate_feeds.py index 703a14f..2665f10 100644 --- a/hamnadmin/hamnadmin/register/management/commands/aggregate_feeds.py +++ b/hamnadmin/hamnadmin/register/management/commands/aggregate_feeds.py @@ -117,7 +117,7 @@ class Command(BaseCommand): # If the blog URL changed, update it as requested # Do this here so that the new blogurl is used for emails below. if getattr(feed, 'new_blogurl', None): - self.trace("URL changed for %s to %s" % (feed.feedurl, feed.new_blogurl)) + self.trace("URL changed for %s from '%s' to '%s'" % (feed.feedurl, feed.blogurl, feed.new_blogurl)) send_simple_mail( settings.EMAIL_SENDER, settings.NOTIFICATION_RECEIVER, -- 2.39.5