Browse files

Made the logging slightly better.

(and removed a bit of debugging code I forgot about).
  • Loading branch information...
1 parent d5f32bf commit d8016caa490f4194ae706b78b4ada7ae20894ddf @jacobian jacobian committed Jun 29, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −2 django_website/aggregator/models.py
  2. +0 −1 django_website/aggregator/views.py
View
4 django_website/aggregator/models.py
@@ -94,11 +94,11 @@ def get_absolute_url(self):
return self.link
def feed_updated(sender, notification, **kwargs):
- log.debug('Recieved notification: %s', sender.topic)
+ log.debug('Recieved notification on subscription ID %s (%s)', sender.id, sender.topic)
try:
feed = Feed.objects.get(feed_url=sender.topic)
except Feed.DoesNotExist:
- log.error('Got notified about a non-existant feed: %s', sender.topic)
+ log.error("Subscription ID %s (%s) doesn't have a feed.", sender.id, sender.topic)
for entry in notification.entries:
title = entry.title
View
1 django_website/aggregator/views.py
@@ -15,7 +15,6 @@ def index(request):
"""
Displays the latest feeds of each type.
"""
- logging.getLogger('django_website.foobar').info('sdfasdf')
ctx = {'feedtype_list': FeedType.objects.all()}
return render(request, 'aggregator/index.html', ctx)

0 comments on commit d8016ca

Please sign in to comment.