pocketarc/git-deploy-php

Log file

teanocrata opened this issue · 0 comments

Hi Bruno,

In Config.php, when you check if log option is set, you assign to WRITE_TO_LOG constant the value of revert option in case it's set, Is it correct?

if (isset($opts['log'])) {
   define('WRITE_TO_LOG', $opts['revert'] ? $opts['revert'] : 'git_deploy_php_log.txt');
}

Maybe It would be something like:

if (isset($opts['log'])) {
   define('WRITE_TO_LOG', $opts['log'] ? $opts['log'] : 'git_deploy_php_log.txt');
}