mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Decreasing logging to see if it helps loadtimes.
This commit is contained in:
parent
7ca060d3f3
commit
5770b6f04a
1 changed files with 5 additions and 2 deletions
|
@ -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}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue