summary refs log tree commit diff
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-11-03 02:28:07 +1100
committerGitHub <noreply@github.com>2018-11-03 02:28:07 +1100
commit0467384d2f1bd6496b81165689662cd4d3f9deba (patch)
treeb1dfb9992b5d82491a00e42c9a669d3226f6f3c6
parentMerge pull request #4137 from matrix-org/erikj/clean_up_events (diff)
downloadsynapse-0467384d2f1bd6496b81165689662cd4d3f9deba.tar.xz
Set the encoding to UTF8 in the default logconfig (#4138)
-rw-r--r--changelog.d/4138.misc1
-rw-r--r--synapse/config/logger.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/4138.misc b/changelog.d/4138.misc
new file mode 100644
index 0000000000..300199f8e8
--- /dev/null
+++ b/changelog.d/4138.misc
@@ -0,0 +1 @@
+The default logging config will now set an explicit log file encoding of UTF-8.
diff --git a/synapse/config/logger.py b/synapse/config/logger.py
index e9a936118d..7081868963 100644
--- a/synapse/config/logger.py
+++ b/synapse/config/logger.py
@@ -50,6 +50,7 @@ handlers:
         maxBytes: 104857600
         backupCount: 10
         filters: [context]
+        encoding: utf8
     console:
         class: logging.StreamHandler
         formatter: precise