public function __construct()
 {
     $this->errorLevelMap = array('E_NONE' => 0, 'E_ERROR' => 1, 'E_WARNING' => 2, 'E_PARSE' => 4, 'E_NOTICE' => 8, 'E_USER_ERROR' => 256, 'E_USER_WARNING' => 512, 'E_USER_NOTICE' => 1024, 'E_RECOVERABLE_ERROR' => 4096, 'E_ALL' => 8191);
     $this->settings = get_option('sentry-settings');
     if (!isset($this->settings['dsn'])) {
         return;
     }
     if ($this->settings['dsn'] == '') {
         return;
     }
     parent::__construct($this->settings['dsn']);
     $this->setErrorReportingLevel($this->settings['reporting_level']);
     $this->setHandlers();
 }
예제 #2
0
 /** {@inheritdoc} */
 public function __construct($optionsOrDsn = null, $options = array())
 {
     $options['auto_log_stacks'] = true;
     parent::__construct($optionsOrDsn, $options);
 }
 function __construct()
 {
     parent::__construct(Mage::getStoreConfig('dev/amg-sentry/dsn'));
 }