diff options
author | Adrian Tschira <nota@notafile.com> | 2018-04-28 12:29:02 +0200 |
---|---|---|
committer | Adrian Tschira <nota@notafile.com> | 2018-04-28 13:34:13 +0200 |
commit | a376d8f7615e9715d6c5c3fa2d95f9d48ff87a61 (patch) | |
tree | a3d2ba10d293081aa6a2e18d18d4fa08000e6dba | |
parent | Open config file in non-bytes mode (diff) | |
download | synapse-a376d8f7615e9715d6c5c3fa2d95f9d48ff87a61.tar.xz |
open log_config in text mode too
Signed-off-by: Adrian Tschira <nota@notafile.com>
Diffstat (limited to '')
-rw-r--r-- | synapse/config/logger.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/config/logger.py b/synapse/config/logger.py index 3f70039acd..6a7228dc2f 100644 --- a/synapse/config/logger.py +++ b/synapse/config/logger.py @@ -117,7 +117,7 @@ class LoggingConfig(Config): log_config = config.get("log_config") if log_config and not os.path.exists(log_config): log_file = self.abspath("homeserver.log") - with open(log_config, "wb") as log_config_file: + with open(log_config, "w") as log_config_file: log_config_file.write( DEFAULT_LOG_CONFIG.substitute(log_file=log_file) ) |