From a14da1c55849ae642f263a55639a8ae3e3d37187 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Tue, 21 Jul 2015 14:01:31 +0200 Subject: [PATCH] Make sure to log inspection messages into message log too refs #9641 --- library/Icinga/Data/Inspection.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Data/Inspection.php b/library/Icinga/Data/Inspection.php index eea91617e..f06c73135 100644 --- a/library/Icinga/Data/Inspection.php +++ b/library/Icinga/Data/Inspection.php @@ -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; }