You are here

function hook_raven_watchdog_filter_alter in Raven: Sentry Integration 7

Same name and namespace in other branches
  1. 7.4 raven.api.php \hook_raven_watchdog_filter_alter()
  2. 7.2 raven.api.php \hook_raven_watchdog_filter_alter()
  3. 7.3 raven.api.php \hook_raven_watchdog_filter_alter()

Filter known watchdog entries so do not log them to Sentry again and again.

Parameters

array $filter: A reference to array containing log entry info.

1 invocation of hook_raven_watchdog_filter_alter()
raven_watchdog in ./raven.module
Implements hook_watchdog().

File

./raven.api.php, line 107
Sample hooks demonstrating usage of Raven.

Code

function hook_raven_watchdog_filter_alter(array &$filter) {
  $log_entry = $filter['log_entry'];
  if ($log_entry['type'] === 'foo') {
    $filter['process'] = FALSE;
  }
}