From 2a29635e30ad8f96c972d86a2ffe4e12dec0f1a1 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Claeysens Date: Wed, 10 Oct 2018 09:42:24 +0200 Subject: [PATCH] If devMode is on, there won't be any notifications --- src/SlackErrorNotifications.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SlackErrorNotifications.php b/src/SlackErrorNotifications.php index 79bfaeb..13a5f9d 100644 --- a/src/SlackErrorNotifications.php +++ b/src/SlackErrorNotifications.php @@ -92,9 +92,9 @@ function (ExceptionEvent $event) { $webhook = $this->getSettings()->webhook; - // if (\Craft::$app->config->getGeneral()->devMode === true) { - // return; - // } + if (\Craft::$app->config->getGeneral()->devMode === true) { + return; + } self::$plugin->slackService->sendNotification($event->exception); }