mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
CustomVarRendererHook: Log an exception's message and location
fixes #5258
This commit is contained in:
parent
eef276be93
commit
fdbd9035c8
@ -65,7 +65,8 @@ abstract class CustomVarRendererHook
|
|||||||
$hooks[] = $hook;
|
$hooks[] = $hook;
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Logger::error('Failed to load hook %s:', get_class($hook), $e);
|
Logger::error('Failed to load hook %s: %s', get_class($hook), $e);
|
||||||
|
Logger::debug($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +82,8 @@ abstract class CustomVarRendererHook
|
|||||||
$renderedValue = $hook->renderCustomVarValue($key, $value);
|
$renderedValue = $hook->renderCustomVarValue($key, $value);
|
||||||
$group = $hook->identifyCustomVarGroup($key);
|
$group = $hook->identifyCustomVarGroup($key);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Logger::error('Failed to use hook %s:', get_class($hook), $e);
|
Logger::error('Failed to use hook %s: %s', get_class($hook), $e);
|
||||||
|
Logger::debug($e);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user