Add debug log call for Travis
Use old-style ternary for PHP 5.2