From 825a9df04fee39f50cb46d597f94720de7a02bd0 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Mon, 3 May 2021 01:36:20 +0700 Subject: [PATCH] Add app logs to debug script (#773) --- scripts/debug | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/debug b/scripts/debug index aa15f00..6169e29 100755 --- a/scripts/debug +++ b/scripts/debug @@ -148,6 +148,20 @@ echo "--------" echo docker-compose logs --tail=30 tor +installed_apps=$(./scripts/app ls-installed) +if [[ ! -z "${installed_apps:-}" ]]; then + echo + echo "App logs" + echo "--------" + for app in $installed_apps; do + echo + echo "${app}" + echo + # Double tail because we want 30 lines total not per container + ./scripts/app compose $app logs --tail 30 | tail -n 30; + done +fi + if [[ ! -z "${UMBREL_OS:-}" ]]; then list_block_devices () { # Documented in the mount script for Umbrel OS