Merge pull request #3224 from Icinga/bugfix/custom-menu-item-log-message-3189

Fix unneccessary log message
This commit is contained in:
lippserd 2018-01-11 11:43:17 +01:00 committed by GitHub
commit 44b490e4b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -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';