From 9a6517a3bdc60ce8ca2f091b3b8826c044434ba9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 19 Jan 2019 17:38:05 +0100 Subject: [PATCH] Try to trap apache log --- .travis.yml | 4 ++-- build/travis-ci/apache.conf | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ed585e2970f..48ea16ab886 100644 --- a/.travis.yml +++ b/.travis.yml @@ -281,7 +281,7 @@ script: # The wget should return a page with line ' wget -O - http://127.0.0.1 > test.html head test.html - sudo cat /var/log/apache2/error.log + sudo cat /var/log/apache2/travis_error_log set +e echo @@ -379,7 +379,7 @@ after_failure: done # Apache log file echo "Debugging informations for file apache error.log" - sudo cat /var/log/apache2/error.log + sudo cat /var/log/apache2/travis_error_log if [ "$DEBUG" = true ]; then # Dolibarr log file echo "Debugging informations for file dolibarr.log (latest 50 lines)" diff --git a/build/travis-ci/apache.conf b/build/travis-ci/apache.conf index a4965c40d68..60a4095c34a 100644 --- a/build/travis-ci/apache.conf +++ b/build/travis-ci/apache.conf @@ -1,5 +1,6 @@ DocumentRoot %TRAVIS_BUILD_DIR%/htdocs + ErrorLog /var/log/apache2/travis_error_log Options FollowSymLinks MultiViews ExecCGI