diff --git a/start.sh b/start.sh index ce3f17d..0a4b42f 100755 --- a/start.sh +++ b/start.sh @@ -22,7 +22,10 @@ if [[ ! -f /app/data/configs/homeserver.yaml ]]; then cp /app/pkg/homeserver.yaml.template /app/data/configs/homeserver.yaml mv /app/data/configs/${server_name}.log.config /app/data/configs/log.config yq eval -i ".log_config=\"/app/data/configs/log.config\"" /app/data/configs/homeserver.yaml - yq eval -i ".handlers.file.filename=\"/run/synapse/homeserver.log\"" /app/data/configs/log.config + + # delete default file and buffer handlers + yq eval -i "del(.handlers.file)" /app/data/configs/log.config + yq eval -i "del(.handlers.buffer)" /app/data/configs/log.config mv /app/data/configs/${server_name}.signing.key /app/data/configs/signing.key @@ -40,6 +43,10 @@ if [[ ! -f /app/data/configs/homeserver.yaml ]]; then fi fi +echo "==> Ensure we log to console" +yq eval -i ".root.handlers=[\"console\"]" /app/data/configs/log.config +yq eval -i ".loggers.twisted.handlers=[\"console\"]" /app/data/configs/log.config + [[ ! -f /app/data/index.html ]] && cp /app/pkg/index.html /app/data/index.html echo "==> Configuring synapse"