aboutsummaryrefslogtreecommitdiff
path: root/app/im/config
diff options
context:
space:
mode:
Diffstat (limited to 'app/im/config')
-rw-r--r--app/im/config/homeserver.yaml2
-rw-r--r--app/im/config/synapse.log.config.yaml23
2 files changed, 24 insertions, 1 deletions
diff --git a/app/im/config/homeserver.yaml b/app/im/config/homeserver.yaml
index 8204f14..0caacfe 100644
--- a/app/im/config/homeserver.yaml
+++ b/app/im/config/homeserver.yaml
@@ -804,7 +804,7 @@ database:
# A yaml python logging config file as described by
# https://docs.python.org/3.7/library/logging.config.html#configuration-dictionary-schema
#
-log_config: "/data/matrix.home.adnab.me.log.config"
+log_config: "/etc/matrix-synapse/synapse.log.config.yaml"
## Ratelimiting ##
diff --git a/app/im/config/synapse.log.config.yaml b/app/im/config/synapse.log.config.yaml
new file mode 100644
index 0000000..0b5622e
--- /dev/null
+++ b/app/im/config/synapse.log.config.yaml
@@ -0,0 +1,23 @@
+version: 1
+
+formatters:
+ precise:
+ format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
+
+
+handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: precise
+
+loggers:
+ synapse.storage.SQL:
+ # beware: increasing this to DEBUG will make synapse log sensitive
+ # information such as access tokens.
+ level: INFO
+
+root:
+ level: INFO
+ handlers: [console]
+
+disable_existing_loggers: false