Improve console command logging
This commit is contained in:
parent
1c17bead45
commit
03be668c45
2 changed files with 4 additions and 1 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue