0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 08:53:46 +01:00

yaml.load expects strings to be a yaml rather than file

This commit is contained in:
Erik Johnston 2015-02-10 13:57:31 +00:00
parent 30595b466f
commit f91345bdb5

View file

@ -80,7 +80,8 @@ class LoggingConfig(Config):
logger.addHandler(handler)
logger.info("Test")
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.start()