Ensure that all config options have sensible defaults

This will enable us to skip the unintuitive behaviour where the generated
config and default config are the same thing.
This commit is contained in:
Richard van der Hoff 2019-06-21 23:39:08 +01:00
parent cf7aef1114
commit 7c2f8881a9
4 changed files with 27 additions and 13 deletions

View file

@ -133,7 +133,7 @@ class LoggingConfig(Config):
help="Do not redirect stdout/stderr to the log",
)
def generate_files(self, config):
def generate_files(self, config, config_dir_path):
log_config = config.get("log_config")
if log_config and not os.path.exists(log_config):
log_file = self.abspath("homeserver.log")