From 447fb7b391bd5d72bf9b8ab5514d9ab49b81a753 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 6 Jul 2019 13:16:00 +0200 Subject: [PATCH] Deprecate RavenHandler, fixes #1340, refs #1298, refs #1331 --- src/Monolog/Handler/RavenHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Monolog/Handler/RavenHandler.php b/src/Monolog/Handler/RavenHandler.php index 10d7f43b..1929f25f 100644 --- a/src/Monolog/Handler/RavenHandler.php +++ b/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;