Fix unneccessary log message

refs #3189
This commit is contained in:
Alexander A. Klimov 2017-12-19 15:58:25 +01:00
parent 72592fcccf
commit a1709a0670
1 changed files with 7 additions and 5 deletions

View File

@ -161,11 +161,13 @@ class Navigation implements ArrayAccess, Countable, IteratorAggregate
}
if ($item === null) {
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';