Improve console command logging

This commit is contained in:
Hillel Coren 2017-05-30 13:03:06 +03:00
parent 1c17bead45
commit 03be668c45
2 changed files with 4 additions and 1 deletions

View File

@ -103,6 +103,7 @@ class CheckData extends Command
private function logMessage($str)
{
$str = date('Y-m-d h:i:s') . ' ' . $str;
$this->info($str);
$this->log .= $str . "\n";
}

View File

@ -315,7 +315,9 @@ class InitLookup extends Command
private function logMessage($str)
{
$this->log .= date('Y-m-d h:i:s') . ' ' . $str . "\n";
$str = date('Y-m-d h:i:s') . ' ' . $str;
$this->info($str);
$this->log .= $str . "\n";
}
private function logError($str)