From f38aa289ea28b806c4b271d13b2c444dfc14fef2 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 23 Jun 2024 15:00:40 +0200 Subject: [PATCH] matrix-synapse: enable more useful logging --- modules/matrix/default.nix | 2 -- modules/matrix/matrix-log-config.yaml | 40 --------------------------- 2 files changed, 42 deletions(-) delete mode 100644 modules/matrix/matrix-log-config.yaml diff --git a/modules/matrix/default.nix b/modules/matrix/default.nix index da6c49d..f8b2355 100644 --- a/modules/matrix/default.nix +++ b/modules/matrix/default.nix @@ -108,8 +108,6 @@ in instance_map = { }; limit_profile_requests_to_users_who_share_rooms = false; - log_config = ./matrix-log-config.yaml; - max_spider_size = "10M"; max_upload_size = "50M"; media_storage_providers = [ ]; diff --git a/modules/matrix/matrix-log-config.yaml b/modules/matrix/matrix-log-config.yaml deleted file mode 100644 index c7465ae..0000000 --- a/modules/matrix/matrix-log-config.yaml +++ /dev/null @@ -1,40 +0,0 @@ -version: 1 - -formatters: - precise: - format: "%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s" - -filters: - context: - (): synapse.util.logcontext.LoggingContextFilter - request: "" - -handlers: - console: - class: logging.StreamHandler - formatter: precise - filters: [context] - -loggers: - synapse: - level: WARNING - - synapse.storage.SQL: - # beware: increasing this to DEBUG will make synapse log sensitive - # information such as access tokens. - level: WARNING - - synapse.http.matrixfederationclient: - level: CRITICAL - synapse.federation.sender.per_destination_queue: - level: CRITICAL - synapse.handlers.device: - level: CRITICAL - synapse.replication.tcp.handler: - level: CRITICAL - shared_secret_authenticator: - level: INFO - -root: - level: WARNING - handlers: [console]