diff --git a/.travis.yml b/.travis.yml index 2bf2fde7..5d4a4cb3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,7 +39,10 @@ after_failure: - sudo cat /var/log/php5-fpm.log - sudo ls /var/run/mysql* - sudo ls /var/log/*mysql* - - sudo cat /var/log/mysql + - sudo cat /var/log/mysql.err + - sudo cat /var/log/mysql.log + - sudo cat /var/log/mysql/error.log + - sudo cat /var/log/mysql/slow.log # configure notifications (email, IRC, campfire etc) #notifications: diff --git a/core/util.inc.php b/core/util.inc.php index c64d95d3..de188bfc 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -600,7 +600,7 @@ $_execs = 0; */ function _count_execs($db, $sql, $inputarray) { global $_execs; - if (defined(DEBUG_SQL) && (DEBUG_SQL === true || (is_null(DEBUG_SQL) && @$_GET['DEBUG_SQL'])) { + if (defined(DEBUG_SQL) && (DEBUG_SQL === true || (is_null(DEBUG_SQL) && @$_GET['DEBUG_SQL']))) { $fp = @fopen("data/sql.log", "a"); if($fp) { if(isset($inputarray) && is_array($inputarray)) {