mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Attempt to display error info for php apps when encountering 50x errors
This commit is contained in:
parent
ed35d4ac21
commit
f8f48a7e7f
1 changed files with 5 additions and 0 deletions
|
@ -261,6 +261,11 @@ Page extract:\n$page_extract" > $TEST_CONTEXT/curl_result
|
|||
do
|
||||
LXC_EXEC "journalctl --no-pager --no-hostname -n 30 -u $SERVICE";
|
||||
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}')
|
||||
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
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue