mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Recoloring db times logs.
This commit is contained in:
parent
587b3fdadf
commit
0bae64e6fd
2 changed files with 6 additions and 5 deletions
|
@ -308,8 +308,9 @@ NEWSBLUR.Views.OriginalTabView = Backbone.View.extend({
|
|||
});
|
||||
|
||||
NEWSBLUR.assets.stories.any(_.bind(function(story, i) {
|
||||
if (story.get('story_feed_id') == NEWSBLUR.reader.active_feed ||
|
||||
"social:" + story.get('social_user_id') == NEWSBLUR.reader.active_feed) {
|
||||
if ($iframe &&
|
||||
(story.get('story_feed_id') == NEWSBLUR.reader.active_feed ||
|
||||
"social:" + story.get('social_user_id') == NEWSBLUR.reader.active_feed)) {
|
||||
var $story = this.find_story_in_feed_iframe(story, $iframe);
|
||||
// NEWSBLUR.log(['Fetching story', i, story.get('story_title'), $story]);
|
||||
|
||||
|
@ -661,4 +662,4 @@ NEWSBLUR.Views.OriginalTabView = Backbone.View.extend({
|
|||
}
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
|
|
@ -31,8 +31,8 @@ class DumpRequestMiddleware:
|
|||
self.color_db(request.sql_times_elapsed['redis_pubsub'], '~FC'),
|
||||
request.sql_times_elapsed['redis_pubsub'],
|
||||
)
|
||||
logging.user(request, " ---> %s~SN~FCDB times: ~FYsql: %s%.4f~SNs ~SN~FMmongo: %s%.5f~SNs ~SN~FCredis: %s" % (
|
||||
self.elapsed_time(request),
|
||||
logging.user(request, "~SN~FCDB times ~SB~FK%s~SN~FC: ~FYsql: %s%.4f~SNs ~SN~FMmongo: %s%.5f~SNs ~SN~FCredis: %s" % (
|
||||
request.path,
|
||||
self.color_db(request.sql_times_elapsed['sql'], '~FY'),
|
||||
request.sql_times_elapsed['sql'],
|
||||
self.color_db(request.sql_times_elapsed['mongo'], '~FM'),
|
||||
|
|
Loading…
Add table
Reference in a new issue