mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Improve console command logging
This commit is contained in:
parent
1c17bead45
commit
03be668c45
@ -103,6 +103,7 @@ class CheckData extends Command
|
|||||||
|
|
||||||
private function logMessage($str)
|
private function logMessage($str)
|
||||||
{
|
{
|
||||||
|
$str = date('Y-m-d h:i:s') . ' ' . $str;
|
||||||
$this->info($str);
|
$this->info($str);
|
||||||
$this->log .= $str . "\n";
|
$this->log .= $str . "\n";
|
||||||
}
|
}
|
||||||
|
@ -315,7 +315,9 @@ class InitLookup extends Command
|
|||||||
|
|
||||||
private function logMessage($str)
|
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)
|
private function logError($str)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user