Skip to content

Commit

Permalink
If devMode is on, there won't be any notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Pieter-Jan Claeysens committed Oct 10, 2018
1 parent 51585cf commit 2a29635
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SlackErrorNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2a29635

Please sign in to comment.