function hook_raven_known_php_errors_alter in Raven: Sentry Integration 7
Provide the list of known PHP errors.
Parameters
array $known_errors: A reference to array containing PHP errors info.
2 invocations of hook_raven_known_php_errors_alter()
- hook_raven_error_filter_alter in ./
raven.api.php - Filter known errors so do not log them to Sentry again and again.
- raven_raven_error_filter_alter in ./
raven.module - Implements hook_raven_error_filter_alter().
File
- ./
raven.api.php, line 78 - Sample hooks demonstrating usage of Raven.
Code
function hook_raven_known_php_errors_alter(array &$known_errors) {
$known_errors[] = array(
'code' => E_NOTICE,
'message' => 'Array to string conversion',
'file' => DRUPAL_ROOT . '/sites/all/modules/views/plugins/views_plugin_cache.inc',
'line' => 206,
);
$known_errors[] = array(
'code' => E_NOTICE,
'message' => 'Undefined index: width',
'file' => DRUPAL_ROOT . '/sites/all/modules/flexslider/flexslider_fields/flexslider_fields.module',
'line' => 140,
);
$known_errors[] = array(
'code' => E_NOTICE,
'message' => 'Undefined index: height',
'file' => DRUPAL_ROOT . '/sites/all/modules/flexslider/flexslider_fields/flexslider_fields.module',
'line' => 141,
);
}