Decreasing logging to see if it helps loadtimes.

This commit is contained in:
Samuel Clay 2013-06-21 11:54:34 -07:00
parent 7ca060d3f3
commit 5770b6f04a

View file

@ -475,14 +475,17 @@ def feed_unread_count(request):
if social_feed_ids:
social_feeds = MSocialSubscription.feeds_with_updated_counts(user, social_feed_ids=social_feed_ids)
if True or settings.DEBUG:
if len(feed_ids):
if settings.DEBUG:
if len(feed_ids) == 1:
feed_title = Feed.get_by_id(feed_ids[0]).feed_title
elif len(social_feed_ids) == 1:
feed_title = MSocialProfile.objects.get(user_id=social_feed_ids[0].replace('social:', '')).username
else:
feed_title = "%s feeds" % (len(feeds) + len(social_feeds))
logging.user(request, "~FBUpdating unread count on: %s" % feed_title)
else:
feed_title = "%s feeds" % (len(feeds) + len(social_feeds))
logging.user(request, "~FBUpdating unread count on: %s" % feed_title)
return {'feeds': feeds, 'social_feeds': social_feeds}