From 245e81e4bba42aafc4db7318bf48579e9d4e6256 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 8 Jan 2023 01:11:58 +0100 Subject: [PATCH] fix: make bridge logging ERROR only Decryption happens on the bridges (between systems) so in order to stop plaintext logging of chat messages, we default to ERROR. If people need more, they can submit changes for customisation. --- abra.sh | 6 +++--- discord_bridge.yaml.tmpl | 2 +- signal_bridge.yaml.tmpl | 6 +++--- telegram_bridge.yaml.tmpl | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/abra.sh b/abra.sh index 8283b13..5cec792 100644 --- a/abra.sh +++ b/abra.sh @@ -1,7 +1,7 @@ -export DISCORD_BRIDGE_YAML_VERSION=v1 +export DISCORD_BRIDGE_YAML_VERSION=v2 export ENTRYPOINT_CONF_VERSION=v1 export HOMESERVER_YAML_VERSION=v15 export LOG_CONFIG_VERSION=v2 export SHARED_SECRET_AUTH_VERSION=v1 -export SIGNAL_BRIDGE_YAML_VERSION=v2 -export TELEGRAM_BRIDGE_YAML_VERSION=v3 +export SIGNAL_BRIDGE_YAML_VERSION=v3 +export TELEGRAM_BRIDGE_YAML_VERSION=v4 diff --git a/discord_bridge.yaml.tmpl b/discord_bridge.yaml.tmpl index a2707a0..b440347 100644 --- a/discord_bridge.yaml.tmpl +++ b/discord_bridge.yaml.tmpl @@ -50,7 +50,7 @@ auth: logging: # What level should the logger output to the console at. - console: "warn" #silly, verbose, info, http, warn, error, silent + console: "error" #silly, verbose, info, http, warn, error, silent lineDateFormat: "MMM-D HH:mm:ss.SSS" # This is in moment.js format files: - file: "debug.log" diff --git a/signal_bridge.yaml.tmpl b/signal_bridge.yaml.tmpl index 91000b4..1fab449 100644 --- a/signal_bridge.yaml.tmpl +++ b/signal_bridge.yaml.tmpl @@ -316,9 +316,9 @@ logging: formatter: colored loggers: mau: - level: DEBUG + level: ERROR aiohttp: - level: INFO + level: ERROR root: - level: DEBUG + level: ERROR handlers: [console] diff --git a/telegram_bridge.yaml.tmpl b/telegram_bridge.yaml.tmpl index 5f90d39..7c9419c 100644 --- a/telegram_bridge.yaml.tmpl +++ b/telegram_bridge.yaml.tmpl @@ -534,11 +534,11 @@ logging: formatter: colored loggers: mau: - level: DEBUG + level: ERROR telethon: - level: INFO + level: ERROR aiohttp: - level: INFO + level: ERROR root: - level: DEBUG + level: ERROR handlers: [file, console]