bundles/matrix-synapse: ensure we're logging to journal

This commit is contained in:
Franzi 2023-08-23 17:25:41 +02:00
parent e754b68f06
commit 33d42e2472
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 32 additions and 2 deletions

View file

@ -0,0 +1,21 @@
version: 1
formatters:
journal:
format: '%(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
handlers:
console:
class: logging.StreamHandler
formatter: journal
loggers:
synapse.storage.SQL:
level: INFO
root:
level: INFO
handlers: [console]
disable_existing_loggers: false

View file

@ -1,7 +1,15 @@
files = {
'/etc/matrix-synapse/homeserver.yaml': {
'content_type': 'mako',
'context': node.metadata['matrix-synapse'],
'context': node.metadata.get('matrix-synapse'),
'needs': {
'pkg_apt:matrix-synapse-py3',
},
'triggers': {
'svc_systemd:matrix-synapse:restart',
},
},
'/etc/matrix-synapse/log.yaml': {
'needs': {
'pkg_apt:matrix-synapse-py3',
},
@ -31,7 +39,7 @@ files = {
# Our override.conf ensures this file is never read, so we don't
# need to restart synapse after changing stuff in here.
'content_type': 'mako',
'context': node.metadata['matrix-synapse'],
'context': node.metadata.get('matrix-synapse'),
},
'/etc/matrix-synapse/conf.d/report_stats.yaml': {
# see comment above
@ -42,6 +50,7 @@ svc_systemd = {
'matrix-synapse': {
'needs': {
'file:/etc/matrix-synapse/homeserver.yaml',
'file:/etc/matrix-synapse/log.yaml',
'file:/etc/systemd/system/matrix-synapse.service.d/override.conf',
'pkg_apt:matrix-synapse-py3',
'postgres_db:synapse',