You are here

public function Raven::flush in Raven: Sentry Integration 3.x

Same name and namespace in other branches
  1. 8.2 src/Logger/Raven.php \Drupal\raven\Logger\Raven::flush()

Sends all unsent events.

Call this method periodically if you have a long-running script or are processing a large set of data which may generate errors.

File

src/Logger/Raven.php, line 360

Class

Raven
Logs events to Sentry.

Namespace

Drupal\raven\Logger

Code

public function flush() {
  if ($client = $this
    ->getClient()) {
    $client
      ->flush();
  }
}