1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 21:56:31 +02:00

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

This commit is contained in:
Jordi Boggiano
2019-07-06 13:16:00 +02:00
parent 319f4d7905
commit 447fb7b391

View File

@@ -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;