Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made the logging slightly better.

(and removed a bit of debugging code I forgot about).
  • Loading branch information...
commit d8016caa490f4194ae706b78b4ada7ae20894ddf 1 parent d5f32bf
@jacobian jacobian authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.