localisation du cron.log
This commit is contained in:
parent
398d10c1ce
commit
9d1d2f6f49
|
@ -42,7 +42,7 @@ class CronCommand extends Command
|
||||||
{
|
{
|
||||||
$this->output = $output;
|
$this->output = $output;
|
||||||
$this->filesystem = new Filesystem();
|
$this->filesystem = new Filesystem();
|
||||||
$this->rootlog = $this->container->get('kernel')->getProjectDir()."/../var/log/";
|
$this->rootlog = $this->container->get('kernel')->getRootDir()."/../var/log/";
|
||||||
|
|
||||||
$appCron = $this->container->getParameter('appCron');
|
$appCron = $this->container->getParameter('appCron');
|
||||||
if(!$appCron)
|
if(!$appCron)
|
||||||
|
@ -68,6 +68,7 @@ class CronCommand extends Command
|
||||||
$this->writelnred('== CRON ==================================================================================================');
|
$this->writelnred('== CRON ==================================================================================================');
|
||||||
$this->writelnred('==========================================================================================================');
|
$this->writelnred('==========================================================================================================');
|
||||||
$this->writeln ('Date = '.$now->format('Y-m-d H:i:s'));
|
$this->writeln ('Date = '.$now->format('Y-m-d H:i:s'));
|
||||||
|
$this->writeln ('Application = '.$this->container->getParameter("appName"));
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($crons as $cron) {
|
foreach($crons as $cron) {
|
||||||
|
|
|
@ -46,6 +46,7 @@ class SetPasswordCommand extends Command
|
||||||
$this->filesystem = new Filesystem();
|
$this->filesystem = new Filesystem();
|
||||||
$this->rootlog = $this->container->get('kernel')->getProjectDir()."/../var/log/";
|
$this->rootlog = $this->container->get('kernel')->getProjectDir()."/../var/log/";
|
||||||
|
|
||||||
|
|
||||||
$this->writelnred('');
|
$this->writelnred('');
|
||||||
$this->writelnred('== app:SetPasword');
|
$this->writelnred('== app:SetPasword');
|
||||||
$this->writelnred('==========================================================================================================');
|
$this->writelnred('==========================================================================================================');
|
||||||
|
|
Loading…
Reference in New Issue