mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
parent
982e226db0
commit
a14da1c558
@ -59,6 +59,7 @@ class Inspection
|
|||||||
if ($entry instanceof Inspection) {
|
if ($entry instanceof Inspection) {
|
||||||
$this->log[$entry->description] = $entry->toArray();
|
$this->log[$entry->description] = $entry->toArray();
|
||||||
} else {
|
} else {
|
||||||
|
Logger::debug($entry);
|
||||||
$this->log[] = $entry;
|
$this->log[] = $entry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -77,7 +78,8 @@ class Inspection
|
|||||||
if (isset($this->error)) {
|
if (isset($this->error)) {
|
||||||
throw new ProgrammingError('Inspection object used after error');
|
throw new ProgrammingError('Inspection object used after error');
|
||||||
}
|
}
|
||||||
$this->write($entry);
|
Logger::error($entry);
|
||||||
|
$this->log[] = $entry;
|
||||||
$this->error = $entry;
|
$this->error = $entry;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user