Ejemplo n.º 1
0
 protected static function sentryLog(Exception $exception)
 {
     if (Configure::read('debug') == 0 || !Configure::read('Sentry.production_only')) {
         Raven_Autoloader::register();
         App::uses('CakeRavenClient', 'Sentry.Lib');
         $client = new CakeRavenClient(Configure::read('Sentry.PHP.server'));
         $client->captureException($exception, get_class($exception), 'PHP');
     }
 }