Better log
This commit is contained in:
parent
c0eac8600d
commit
26306c90f4
16
.travis.yml
16
.travis.yml
@ -372,19 +372,23 @@ after_success:
|
|||||||
|
|
||||||
after_failure:
|
after_failure:
|
||||||
- |
|
- |
|
||||||
echo Failure
|
echo Failure detected, so we show samples of log to help diagnose
|
||||||
# This part of code seems to be never executed, error or not ???
|
# This part of code is executed only if previous commande that fails are enclosed with set +e
|
||||||
echo "Debugging informations"
|
|
||||||
# Upgrade log files
|
# Upgrade log files
|
||||||
cat *.log
|
for ficlog in `ls $TRAVIS_BUILD_DIR/*.log`
|
||||||
echo "Debugging informations"
|
do
|
||||||
|
echo "Debugging informations for file $ficlog"
|
||||||
|
cat $ficlog
|
||||||
|
done
|
||||||
|
echo "Debugging informations for file apache error.log"
|
||||||
# Apache log file
|
# Apache log file
|
||||||
sudo cat /var/log/apache2/error.log
|
sudo cat /var/log/apache2/error.log
|
||||||
# Dolibarr log file
|
# Dolibarr log file
|
||||||
if [ "$DEBUG" = true ]; then
|
if [ "$DEBUG" = true ]; then
|
||||||
echo Output 50 latest lines of dolibarr.log"
|
echo "Debugging informations for file dolibarr.log (latest 50 lines)"
|
||||||
tail -n 50 $TRAVIS_BUILD_DIR/documents/dolibarr.log
|
tail -n 50 $TRAVIS_BUILD_DIR/documents/dolibarr.log
|
||||||
# MariaDB log file
|
# MariaDB log file
|
||||||
|
echo "Debugging informations for file mysql error.log"
|
||||||
sudo tail -n 50 /var/log/mysql/error.log
|
sudo tail -n 50 /var/log/mysql/error.log
|
||||||
# TODO: PostgreSQL log file
|
# TODO: PostgreSQL log file
|
||||||
echo
|
echo
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user