diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-08 14:11:07 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-08 14:11:07 +0100 |
commit | 3887350e47bc96aef094ee7eb66abe8cc6e30694 (patch) | |
tree | f48744618305d66665b8a3c666ccc94d55f99fd7 /synapse/storage | |
parent | Retry transaction, not SQL query (diff) | |
parent | Merge pull request #117 from matrix-org/notifier-leak (diff) | |
download | synapse-3887350e47bc96aef094ee7eb66abe8cc6e30694.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into mysql
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/_base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index fee713eb26..23289bbdd4 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -36,6 +36,7 @@ logger = logging.getLogger(__name__) sql_logger = logging.getLogger("synapse.storage.SQL") transaction_logger = logging.getLogger("synapse.storage.txn") +perf_logger = logging.getLogger("synapse.storage.TIME") metrics = synapse.metrics.get_metrics_for("synapse.storage") @@ -323,7 +324,7 @@ class SQLBaseStore(object): time_now - time_then, limit=3 ) - logger.info( + perf_logger.info( "Total database time: %.3f%% {%s} {%s}", ratio * 100, top_three_counters, top_3_event_counters ) |