You are here

function raven_flush in Raven: Sentry Integration 7.2

Same name and namespace in other branches
  1. 7.4 raven.module \raven_flush()
  2. 7.3 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 460
Allows to track errors to Sentry server.

Code

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