diff --git a/modules/monitoring/library/Monitoring/Hook/CustomVarRendererHook.php b/modules/monitoring/library/Monitoring/Hook/CustomVarRendererHook.php index 6895337115..e4dae64d9b 100644 --- a/modules/monitoring/library/Monitoring/Hook/CustomVarRendererHook.php +++ b/modules/monitoring/library/Monitoring/Hook/CustomVarRendererHook.php @@ -65,7 +65,8 @@ final public static function prepareForObject(MonitoredObject $object) $hooks[] = $hook; } } 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 @@ final public static function prepareForObject(MonitoredObject $object) $renderedValue = $hook->renderCustomVarValue($key, $value); $group = $hook->identifyCustomVarGroup($key); } 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; }