diff options
author | Erik Johnston <erik@matrix.org> | 2015-02-10 13:57:31 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-02-10 13:57:31 +0000 |
commit | f91345bdb5b76ce76b99d4fc969ee4f41cbbba4c (patch) | |
tree | 507cb3a47a88a7c1a67b06f56598ec133913f77a | |
parent | Use yaml logging config format because it is much nicer (diff) | |
download | synapse-f91345bdb5b76ce76b99d4fc969ee4f41cbbba4c.tar.xz |
yaml.load expects strings to be a yaml rather than file
Diffstat (limited to '')
-rw-r--r-- | synapse/config/logger.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/config/logger.py b/synapse/config/logger.py index b18d08ec61..63c8e36930 100644 --- a/synapse/config/logger.py +++ b/synapse/config/logger.py @@ -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() |