You are here

function raven_flush in Raven: Sentry Integration 7.3

Same name and namespace in other branches
  1. 7.4 raven.module \raven_flush()
  2. 7.2 raven.module \raven_flush()

Sends all unsent events.

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

File

./raven.module, line 456
Allows to track errors to Sentry server.

Code

function raven_flush() {
  $client = raven_get_client();
  if (!$client) {
    return;
  }
  $client
    ->onShutdown();
}