diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-03-10 15:16:50 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-03-10 15:34:01 +0000 |
commit | d84bd51e95149f67e0740657d60b568533a6ea72 (patch) | |
tree | 248717e8119a6b941fa5c33b930978a1c4184481 /synapse/app/homeserver.py | |
parent | Fix docstring (diff) | |
download | synapse-d84bd51e95149f67e0740657d60b568533a6ea72.tar.xz |
Refactor logger config for workers
- to make it easier to add more config options.
Diffstat (limited to '')
-rwxr-xr-x | synapse/app/homeserver.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index e0b87468fe..0b9d78c13c 100755 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -20,6 +20,8 @@ import gc import logging import os import sys + +import synapse.config.logger from synapse.config._base import ConfigError from synapse.python_dependencies import ( @@ -286,7 +288,7 @@ def setup(config_options): # generating config files and shouldn't try to continue. sys.exit(0) - config.setup_logging() + synapse.config.logger.setup_logging(config, use_worker_options=False) # check any extra requirements we have now we have a config check_requirements(config) |