Debugging 50x errors: change strategy, display logs for files changes in last 3 minutes

This commit is contained in:
Alexandre Aubin 2021-04-19 19:20:23 +02:00 committed by GitHub
parent f8f48a7e7f
commit de4b5ee480
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,11 +261,7 @@ Page extract:\n$page_extract" > $TEST_CONTEXT/curl_result
do do
LXC_EXEC "journalctl --no-pager --no-hostname -n 30 -u $SERVICE"; LXC_EXEC "journalctl --no-pager --no-hostname -n 30 -u $SERVICE";
done done
for PHP_VERSION in $(LXC_EXEC "ls /etc/php/*/fpm/pool.d/$app_id_to_check.conf 2>/dev/null" | awk -F/ '{print $4}') LXC_EXEC "tail -v -n 15 \$(find /var/log/{nginx/,php*,$app_id_to_check} -mmin -3)"
do
LXC_EXEC "journalctl --no-pager --no-hostname -n 30 -u php$PHP_VERSION-fpm";
LXC_EXEC "tail -n 30 /var/log/php$PHP_VERSION-fpm.log"
done
fi fi
done done