summary refs log tree commit diff
path: root/synapse/config/_base.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-04-30 16:52:57 +0100
committerMark Haines <mark.haines@matrix.org>2015-04-30 16:52:57 +0100
commit2f1348f3395ba44cece492205ce7fa87ac519bee (patch)
tree57c2783ca4b2a39176385fd6720fe98fdbc17468 /synapse/config/_base.py
parentDon't break when sizes or durations are given as integers (diff)
downloadsynapse-2f1348f3395ba44cece492205ce7fa87ac519bee.tar.xz
Write a default log_config when generating config
Diffstat (limited to 'synapse/config/_base.py')
-rw-r--r--synapse/config/_base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/config/_base.py b/synapse/config/_base.py
index e0c203cb1f..d7ccfcd98c 100644
--- a/synapse/config/_base.py
+++ b/synapse/config/_base.py
@@ -171,7 +171,7 @@ class Config(object):
                 config_bytes, config = obj.generate_config(
                     config_dir_path, server_name
                 )
-                obj.invoke_all("generate_keys", config)
+                obj.invoke_all("generate_files", config)
                 config_file.write(config_bytes)
             print (
                 "A config file has been generated in %s for server name"
@@ -192,6 +192,7 @@ class Config(object):
 
         server_name = specified_config["server_name"]
         _, config = obj.generate_config(config_dir_path, server_name)
+        config.pop("log_config")
         config.update(specified_config)
 
         obj.invoke_all("read_config", config)