diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-08-20 23:54:49 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-20 23:54:49 +1000 |
commit | 324525f40ca4df19c43971ca82db0d3478114885 (patch) | |
tree | 05e6a1e45e711c9d5d18b7fbf31c79aa03fb0657 /synapse/config/logger.py | |
parent | Merge pull request #3719 from matrix-org/erikj/use_cache_fact (diff) | |
download | synapse-324525f40ca4df19c43971ca82db0d3478114885.tar.xz |
Port over enough to get some sytests running on Python 3 (#3668)
Diffstat (limited to 'synapse/config/logger.py')
-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 cfc20dcccf..3f187adfc8 100644 --- a/synapse/config/logger.py +++ b/synapse/config/logger.py @@ -168,7 +168,8 @@ def setup_logging(config, use_worker_options=False): if log_file: # TODO: Customisable file size / backup count handler = logging.handlers.RotatingFileHandler( - log_file, maxBytes=(1000 * 1000 * 100), backupCount=3 + log_file, maxBytes=(1000 * 1000 * 100), backupCount=3, + encoding='utf8' ) def sighup(signum, stack): |