You are here

public function Raven::flush in Raven: Sentry Integration 8.2

Same name and namespace in other branches
  1. 3.x 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 325

Class

Raven
Logs events to Sentry.

Namespace

Drupal\raven\Logger

Code

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