You are here

private function RemoveExceptionFrameVarsIntegration::processEvent in Raven: Sentry Integration 3.x

1 call to RemoveExceptionFrameVarsIntegration::processEvent()
RemoveExceptionFrameVarsIntegration::setupOnce in src/Integration/RemoveExceptionFrameVarsIntegration.php

File

src/Integration/RemoveExceptionFrameVarsIntegration.php, line 42

Class

RemoveExceptionFrameVarsIntegration
Removes function calling arguments from exception stack frames.

Namespace

Drupal\raven\Integration

Code

private function processEvent(Event $event, Options $options) : void {

  // Remove function calling arguments from exception stack frames.
  foreach ($event
    ->getExceptions() as $exception) {
    foreach ($exception
      ->getStacktrace()
      ->getFrames() as $frame) {
      $frame
        ->setVars([]);
    }
  }
}