public static function instance() { if (self::$instance === null) { self::$instance = new self(); } return self::$instance; }
public static function handler($e) { Raven::instance()->captureException($e); //Kohana handler adds a Log::ERROR string to log, so double-sending would be undesired Kohana::$log->detach(Log_Raven::instance()); parent::handler($e); //there's death call }