From 5b64c232c5b3bac4948c1541bbb49c7f0c4e5f12 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 1 Sep 2024 03:20:50 +0200 Subject: [PATCH] curl tests: Again tweaking the debugging tails upon error code ? --- lib/tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tests.sh b/lib/tests.sh index 44f9730..50f59b8 100644 --- a/lib/tests.sh +++ b/lib/tests.sh @@ -281,10 +281,10 @@ _VALIDATE_THAT_APP_CAN_BE_ACCESSED () { do LXC_EXEC "journalctl --no-pager --no-hostname -n 30 -u $SERVICE"; done - LXC_EXEC "test -d /var/log/$app_id_to_check && ls -ld /var/log/$app_id_to_check && ls -l /var/log/$app_id_to_check && tail -v -n 15 \$(find /var/log/$app_id_to_check 2>/dev/null)" + LXC_EXEC "test -d /var/log/$app_id_to_check && ls -ld /var/log/$app_id_to_check && ls -l /var/log/$app_id_to_check && tail -v -n 15 \$(find /var/log/$app_id_to_check -type f 2>/dev/null)" if grep -qi php $package_path/manifest.toml then - LXC_EXEC "ls -l /var/log/php* 2>/dev/null; tail -v -n 15 \$(find /var/log/php* 2>/dev/null)" + LXC_EXEC "ls -l /var/log/php* 2>/dev/null; tail -v -n 15 \$(find /var/log/php* =type f 2>/dev/null)" fi fi # Display nginx logs only if for non-50x errors (sor for example 404) to avoid poluting the debug log