Adding a debug mode to the worker so you can see what commands are being run.

This commit is contained in:
Dan Cryer 2016-04-27 14:56:52 +01:00
commit 3c74ca2281
3 changed files with 22 additions and 2 deletions

View file

@ -90,6 +90,10 @@ abstract class BaseCommandExecutor implements CommandExecutor
$pipes = array();
if (defined('PHPCI_DEBUG_MODE')) {
$this->logger->logDebug($command);
}
$process = proc_open($command, $descriptorSpec, $pipes, $this->buildPath, null);
if (is_resource($process)) {