summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-06-21 15:11:57 +0100
committerGitHub <noreply@github.com>2019-06-21 15:11:57 +0100
commit0e8b35f7b0483a6cd49ecbee1879ee8805c71ab3 (patch)
tree00a19430529d443fb93d6f640c34af3542b5d52d
parentFix logging error when a tampered event is detected. (#5500) (diff)
downloadsynapse-0e8b35f7b0483a6cd49ecbee1879ee8805c71ab3.tar.xz
Fix "Unexpected entry in 'full_schemas'" log warning (#5509)
There is a README.txt which always sets off this warning, which is a bit
alarming when you first start synapse. I don't think we need to warn about
this.
-rw-r--r--changelog.d/5509.misc1
-rw-r--r--synapse/storage/prepare_database.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/5509.misc b/changelog.d/5509.misc
new file mode 100644
index 0000000000..cc27cf2940
--- /dev/null
+++ b/changelog.d/5509.misc
@@ -0,0 +1 @@
+Fix "Unexpected entry in 'full_schemas'" log warning.
diff --git a/synapse/storage/prepare_database.py b/synapse/storage/prepare_database.py
index fc10b9534e..7c4e1dc7ec 100644
--- a/synapse/storage/prepare_database.py
+++ b/synapse/storage/prepare_database.py
@@ -133,7 +133,7 @@ def _setup_new_database(cur, database_engine):
             if ver <= SCHEMA_VERSION:
                 valid_dirs.append((ver, abs_path))
         else:
-            logger.warn("Unexpected entry in 'full_schemas': %s", filename)
+            logger.debug("Ignoring entry '%s' in 'full_schemas'", filename)
 
     if not valid_dirs:
         raise PrepareDatabaseException(