mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-29 15:39:00 +03:00
yaml.load expects strings to be a yaml rather than file
This commit is contained in:
parent
30595b466f
commit
f91345bdb5
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ class LoggingConfig(Config):
|
||||||
logger.addHandler(handler)
|
logger.addHandler(handler)
|
||||||
logger.info("Test")
|
logger.info("Test")
|
||||||
else:
|
else:
|
||||||
logging.config.dictConfig(yaml.load(self.log_config))
|
with open(self.log_config, 'r') as f:
|
||||||
|
logging.config.dictConfig(yaml.load(f))
|
||||||
|
|
||||||
observer = PythonLoggingObserver()
|
observer = PythonLoggingObserver()
|
||||||
observer.start()
|
observer.start()
|
||||||
|
|
Loading…
Reference in a new issue