summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-02-10 14:54:07 +0000
committerMark Haines <mark.haines@matrix.org>2015-02-10 14:54:07 +0000
commitfda4422bc9d9f2974d7185011d6d905eea372b09 (patch)
treef7f346d29ed23a320a1217979db8250a63c11d0d /synapse/storage/_base.py
parentAdd performance counters for different stages of loading events (diff)
downloadsynapse-fda4422bc9d9f2974d7185011d6d905eea372b09.tar.xz
Fix pyflakes
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index c79399fe5e..36455ef93c 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -108,7 +108,7 @@ class PerformanceCounters(object):
 
         top_n_counters = ", ".join(
             "%s(%d): %.3f%%" % (name, count, 100 * ratio)
-            for ratio, count, name in txn_counters[:limit]
+            for ratio, count, name in counters[:limit]
         )
 
         return top_n_counters
@@ -151,8 +151,8 @@ class SQLBaseStore(object):
             )
 
             logger.info(
-                "Total database time: %.3f%% {%s}",
-                ratio * 100, top_three_counters
+                "Total database time: %.3f%% {%s} {%s}",
+                ratio * 100, top_three_counters, top_3_event_counters
             )
 
         self._clock.looping_call(loop, 10000)