Make maubot logging level configurable

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1894
This commit is contained in:
Slavi Pantaleev 2022-07-20 13:03:50 +03:00
parent b575409ed7
commit 5ce2732899
2 changed files with 7 additions and 4 deletions

View file

@ -57,6 +57,9 @@ matrix_bot_maubot_management_interface_http_bind_port: ''
matrix_bot_maubot_port: 29316 matrix_bot_maubot_port: 29316
matrix_bot_maubot_unshared_secret: 'generate' matrix_bot_maubot_unshared_secret: 'generate'
# Specifies the default log level for all bot loggers.
matrix_bot_maubot_logging_level: WARNING
# A list of extra arguments to pass to the container # A list of extra arguments to pass to the container
matrix_bot_maubot_container_extra_arguments: [] matrix_bot_maubot_container_extra_arguments: []

View file

@ -97,11 +97,11 @@ logging:
formatter: colored formatter: colored
loggers: loggers:
maubot: maubot:
level: DEBUG level: {{ matrix_bot_maubot_logging_level|to_json }}
mau: mau:
level: DEBUG level: {{ matrix_bot_maubot_logging_level|to_json }}
aiohttp: aiohttp:
level: INFO level: {{ matrix_bot_maubot_logging_level|to_json }}
root: root:
level: DEBUG level: {{ matrix_bot_maubot_logging_level|to_json }}
handlers: [console] handlers: [console]