mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
Merge branch 'develop' of github.com:matrix-org/synapse into mysql
This commit is contained in:
commit
3887350e47
3 changed files with 49 additions and 9 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue