bundles/matrix-synapse: ensure we're logging to journal
This commit is contained in:
parent
e754b68f06
commit
33d42e2472
2 changed files with 32 additions and 2 deletions
21
bundles/matrix-synapse/files/log.yaml
Normal file
21
bundles/matrix-synapse/files/log.yaml
Normal 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
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue