Always display check data ouput

This commit is contained in:
Hillel Coren 2017-01-02 15:00:02 +02:00
parent 9b13321a7f
commit 9632b437ce

View File

@ -74,16 +74,14 @@ class CheckData extends Command {
$this->logMessage('Done'); $this->logMessage('Done');
$errorEmail = env('ERROR_EMAIL'); $errorEmail = env('ERROR_EMAIL');
if ( ! $this->isValid) { $this->info($this->log);
if ($errorEmail) {
Mail::raw($this->log, function ($message) use ($errorEmail) { if ( ! $this->isValid && $errorEmail) {
$message->to($errorEmail) Mail::raw($this->log, function ($message) use ($errorEmail) {
->from(CONTACT_EMAIL) $message->to($errorEmail)
->subject('Check-Data'); ->from(CONTACT_EMAIL)
}); ->subject('Check-Data');
} else { });
$this->info($this->log);
}
} }
} }