diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-08 13:12:38 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-08 13:31:19 +0100 |
commit | c1b34af441e06e8efd775a47410de784ae9c94ec (patch) | |
tree | 29d7127fd9ed1f1cf2076a397b296d2cbb9d799b /synapse | |
parent | typo (diff) | |
download | synapse-c1b34af441e06e8efd775a47410de784ae9c94ec.tar.xz |
Move database timer logging to seperate logger
Diffstat (limited to 'synapse')
-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 6fa63f052e..53eee10d51 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -35,6 +35,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") @@ -268,7 +269,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 ) |