log the command

This commit is contained in:
denisdulici 2020-05-20 02:20:48 +03:00
parent 481ca44a8a
commit b4c56ea617

View File

@ -11,6 +11,8 @@ class Console
{ {
$command = static::formatCommandString($string); $command = static::formatCommandString($string);
logger('Console command:: ' . $command);
$process = Process::fromShellCommandline($command, base_path()); $process = Process::fromShellCommandline($command, base_path());
$process->setTimeout($timeout); $process->setTimeout($timeout);
@ -22,7 +24,7 @@ class Console
$output = $all_output ? $process->getOutput() : $process->getErrorOutput(); $output = $all_output ? $process->getOutput() : $process->getErrorOutput();
logger($output); logger('Console output:: ' . $output);
return $output; return $output;
} }