Explorar el Código

Deprecate RavenHandler, fixes #1340, refs #1298, refs #1331

Jordi Boggiano hace 6 años
padre
commit
447fb7b391
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/Monolog/Handler/RavenHandler.php

+ 2 - 0
src/Monolog/Handler/RavenHandler.php

@@ -61,6 +61,8 @@ class RavenHandler extends AbstractProcessingHandler
      */
     public function __construct(Raven_Client $ravenClient, $level = Logger::DEBUG, $bubble = true)
     {
+        @trigger_error('The Monolog\Handler\RavenHandler class is deprecated. You should rather upgrade to the sentry/sentry 2.x and use Sentry\Monolog\Handler, see https://github.com/getsentry/sentry-php/blob/master/src/Monolog/Handler.php', E_USER_DEPRECATED);
+
         parent::__construct($level, $bubble);
 
         $this->ravenClient = $ravenClient;