Output : Ajout date

This commit is contained in:
Michael RICOIS 2016-07-26 12:12:58 +02:00
parent 9df5e0c01c
commit af9999c518

View File

@ -216,7 +216,7 @@ class FileController extends AbstractActionController
} }
/** /**
* flux_fileout * Marqueur de lecture du fichier
*/ */
public function readAction() public function readAction()
{ {
@ -297,7 +297,7 @@ class FileController extends AbstractActionController
} }
if ($prestation === null) { if ($prestation === null) {
echo date('Y-m-d H:i:s')." - Prestation not found !\n"; $this->output("Prestation not found !");
} }
$fluxBasePath .= '/' . $repositoryDir; $fluxBasePath .= '/' . $repositoryDir;
@ -1114,7 +1114,7 @@ class FileController extends AbstractActionController
protected function output($line, $verbose = true) protected function output($line, $verbose = true)
{ {
if ($verbose) { if ($verbose) {
$this->console->writeLine($line); $this->console->writeLine(date('Y-m-d H:i:s') . ' - ' . $line);
} }
} }
} }