From a1709a06708bbe34bbf91a1ebf6d1c195743b65e Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 19 Dec 2017 15:58:25 +0100 Subject: [PATCH] Fix unneccessary log message refs #3189 --- library/Icinga/Web/Navigation/Navigation.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/library/Icinga/Web/Navigation/Navigation.php b/library/Icinga/Web/Navigation/Navigation.php index a7a15849c..423c51894 100644 --- a/library/Icinga/Web/Navigation/Navigation.php +++ b/library/Icinga/Web/Navigation/Navigation.php @@ -161,11 +161,13 @@ class Navigation implements ArrayAccess, Countable, IteratorAggregate } if ($item === null) { - Logger::debug( - 'Failed to find custom navigation item class %s for item %s. Using base class NavigationItem now', - $itemType, - $name - ); + if ($itemType !== 'MenuItem') { + Logger::debug( + 'Failed to find custom navigation item class %s for item %s. Using base class NavigationItem now', + $itemType, + $name + ); + } $item = new NavigationItem($name, $properties); static::$types[$itemType] = 'Icinga\\Web\\Navigation\\NavigationItem';