mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-02 07:56:08 -04:00
Refactor logger config for workers
- to make it easier to add more config options.
This commit is contained in:
parent
45d173a59a
commit
d84bd51e95
9 changed files with 26 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue