You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/12/20 19:50:59 UTC

[33/36] git commit: [#6388] don't do verbose logging on cursor.next

[#6388] don't do verbose logging on cursor.next


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/3f939bad
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/3f939bad
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/3f939bad

Branch: refs/heads/db/6388
Commit: 3f939bad4f738791018b206f06ece171679dfbeb
Parents: 9acec23
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Thu Dec 19 17:11:52 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Fri Dec 20 17:41:40 2013 +0000

----------------------------------------------------------------------
 Allura/allura/lib/custom_middleware.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3f939bad/Allura/allura/lib/custom_middleware.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/custom_middleware.py b/Allura/allura/lib/custom_middleware.py
index e5fef4f..498a614 100644
--- a/Allura/allura/lib/custom_middleware.py
+++ b/Allura/allura/lib/custom_middleware.py
@@ -192,7 +192,8 @@ class AlluraTimerMiddleware(TimerMiddleware):
         return self.entry_point_timers() + [
             Timer('jinja', jinja2.Template, 'render', 'stream', 'generate'),
             Timer('markdown', markdown.Markdown, 'convert'),
-            Timer('ming', ming.odm.odmsession.ODMCursor, 'next'),  # FIXME: this may captures timings ok, but is misleading for counts
+            Timer('ming', ming.odm.odmsession.ODMCursor, 'next',  # FIXME: this may captures timings ok, but is misleading for counts
+                  debug_each_call=False),
             Timer('ming', ming.odm.odmsession.ODMSession, 'flush', 'find',
                 'get'),
             Timer('ming', ming.schema.Document, 'validate',