From 3a8061618552b31fba874d9db9a52b3e622b72bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Marten?= Date: Fri, 10 Jan 2020 12:40:55 +0100 Subject: [PATCH] Change logging behaviour to only stdout with configurable verbosity (default: info) --- roles/matrix-bridge-appservice-webhooks/defaults/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/matrix-bridge-appservice-webhooks/defaults/main.yml b/roles/matrix-bridge-appservice-webhooks/defaults/main.yml index 0515638b4..665eafa55 100644 --- a/roles/matrix-bridge-appservice-webhooks/defaults/main.yml +++ b/roles/matrix-bridge-appservice-webhooks/defaults/main.yml @@ -46,6 +46,9 @@ matrix_appservice_webhooks_homeserver_token: '' matrix_appservice_webhooks_id_token: '' matrix_appservice_webhooks_api_secret: '' +# Logging information (error, warn, info, verbose, debug is availabe) default is: info +matrix_appservice_webhooks_log_level: 'info' + matrix_appservice_webhooks_configuration_yaml: | # Configuration specific to the application service. All fields (unless otherwise marked) are required. @@ -79,9 +82,9 @@ matrix_appservice_webhooks_configuration_yaml: | logging: file: data/webhook.log console: true - consoleLevel: info + consoleLevel: {{ matrix_appservice_webhooks_log_level }} fileLevel: verbose - writeFiles: true + writeFiles: false rotate: size: 52428800 # bytes, default is 50mb count: 5