Add to log message the old blogurl
authorStephen Frost <sfrost@snowman.net>
Fri, 5 May 2023 20:17:50 +0000 (16:17 -0400)
committerStephen Frost <sfrost@snowman.net>
Fri, 5 May 2023 20:17:50 +0000 (16:17 -0400)
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/hamnadmin/register/management/commands/aggregate_feeds.py

index 703a14f5e821093f0f3245d368791e83f77bf08a..2665f10cfcd80cf0aa4a1dace775730a2178b064 100644 (file)
@@ -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,