summary refs log tree commit diff
path: root/synapse/storage/databases/main
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-09-07 13:36:02 +0100
committerGitHub <noreply@github.com>2020-09-07 13:36:02 +0100
commit0dae7d80bfb497d417a53e52b8353bbcd6d10d58 (patch)
treedfd723493a93ce2e78c20cc13767ee379bc0ed50 /synapse/storage/databases/main
parentRefuse to upgrade database on worker processes (#8266) (diff)
downloadsynapse-0dae7d80bfb497d417a53e52b8353bbcd6d10d58.tar.xz
Add more logging to debug slow startup (#8264)
I'm hoping this will provide some pointers for debugging
https://github.com/matrix-org/synapse/issues/7968.
Diffstat (limited to 'synapse/storage/databases/main')
-rw-r--r--synapse/storage/databases/main/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/__init__.py b/synapse/storage/databases/main/__init__.py
index 99890ffbf3..b315ae66d2 100644
--- a/synapse/storage/databases/main/__init__.py
+++ b/synapse/storage/databases/main/__init__.py
@@ -591,6 +591,7 @@ def check_database_before_upgrade(cur, database_engine, config: HomeServerConfig
     """Called before upgrading an existing database to check that it is broadly sane
     compared with the configuration.
     """
+    logger.info("Running sanity-checks on database...")
     domain = config.server_name
 
     sql = database_engine.convert_param_style(