import log config into ansible

This commit is contained in:
Nico Schottelius 2023-09-27 12:26:37 +02:00
parent 0dcb46895a
commit b4a47c8905
4 changed files with 36 additions and 5 deletions

View file

@ -772,7 +772,7 @@ database:
name: psycopg2
args:
user: matrix-synapse
password: 31913hkVN_L9b3i_0v1RX_ZJXx_AD564_MM_nz
password: "31913hkVN_L9b3i_0v1RX_ZJXx_AD564_MM_nz"
database: matrix-synapse-db
host: postgresql-mtx.lat.internal.ru.com
port: 5432
@ -792,7 +792,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/log.yaml"
log_config: "/config/log.yaml"
## Ratelimiting ##
@ -2919,4 +2919,3 @@ redis:
# vim:ft=yaml
EOF

View file

@ -0,0 +1,33 @@
version: 1
formatters:
fmt:
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s- %(message)s'
filters:
context:
(): synapse.logging.context.LoggingContextFilter
request: ""
handlers:
console:
class: logging.StreamHandler
formatter: fmt
filters: [context]
root:
level: INFO
handlers: [console] # to use file handler instead, switch to [file]
loggers:
synapse:
level: INFO
synapse.storage.SQL:
level: INFO
ldap3:
level: INFO
ldap_auth_provider:
level: INFO

View file

@ -2,7 +2,6 @@ version: '3'
services:
synapse:
image: matrixdotorg/synapse:${SYNAPSE_VERSION}
environment:
ports:
- "8008:8008/tcp"
volumes:

View file

@ -98,7 +98,7 @@
src: files/{{ item }}/
dest: /home/{{ ansible_user }}/docker_compose/{{ item }}
owner: "{{ ansible_user }}"
mode: '0600'
mode: '0644'
loop: "{{ docker_compose }}"
tags:
- files