summary refs log tree commit diff
path: root/synapse/config/logger.py
diff options
context:
space:
mode:
authorRichard van der Hoff <github@rvanderhoff.org.uk>2018-01-09 12:07:56 +0000
committerGitHub <noreply@github.com>2018-01-09 12:07:56 +0000
commitaed4e4ecdde835f865553add0db0703c1cdee6e6 (patch)
tree5c431b524f74e0af1f827913794c6ce58bece197 /synapse/config/logger.py
parentMerge pull request #2761 from turt2live/patch-1 (diff)
parentMake indentation of generated log config consistent (diff)
downloadsynapse-aed4e4ecdde835f865553add0db0703c1cdee6e6.tar.xz
Merge pull request #2762 from matrix-org/rav/fix_logconfig_indenting
Make indentation of generated log config consistent
Diffstat (limited to 'synapse/config/logger.py')
-rw-r--r--synapse/config/logger.py34
1 files changed, 17 insertions, 17 deletions
diff --git a/synapse/config/logger.py b/synapse/config/logger.py
index 9e8003ad65..9ee46c4dea 100644
--- a/synapse/config/logger.py
+++ b/synapse/config/logger.py
@@ -28,27 +28,27 @@ DEFAULT_LOG_CONFIG = Template("""
 version: 1
 
 formatters:
-  precise:
-   format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s\
-- %(message)s'
+    precise:
+        format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - \
+%(request)s - %(message)s'
 
 filters:
-  context:
-    (): synapse.util.logcontext.LoggingContextFilter
-    request: ""
+    context:
+        (): synapse.util.logcontext.LoggingContextFilter
+        request: ""
 
 handlers:
-  file:
-    class: logging.handlers.RotatingFileHandler
-    formatter: precise
-    filename: ${log_file}
-    maxBytes: 104857600
-    backupCount: 10
-    filters: [context]
-  console:
-    class: logging.StreamHandler
-    formatter: precise
-    filters: [context]
+    file:
+        class: logging.handlers.RotatingFileHandler
+        formatter: precise
+        filename: ${log_file}
+        maxBytes: 104857600
+        backupCount: 10
+        filters: [context]
+    console:
+        class: logging.StreamHandler
+        formatter: precise
+        filters: [context]
 
 loggers:
     synapse: