Make sure to log inspection messages into message log too

refs #9641
This commit is contained in:
Matthias Jentsch 2015-07-21 14:01:31 +02:00
parent 982e226db0
commit a14da1c558
1 changed files with 3 additions and 1 deletions

View File

@ -59,6 +59,7 @@ class Inspection
if ($entry instanceof Inspection) {
$this->log[$entry->description] = $entry->toArray();
} else {
Logger::debug($entry);
$this->log[] = $entry;
}
}
@ -77,7 +78,8 @@ class Inspection
if (isset($this->error)) {
throw new ProgrammingError('Inspection object used after error');
}
$this->write($entry);
Logger::error($entry);
$this->log[] = $entry;
$this->error = $entry;
return $this;
}