Beautiful Open-Source Form Builder
If slack log url not set then not log to slack (#166)
formsdev7e75343495af
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.phpindex 0dc6d7b82..830207d67 100644--- a/app/Exceptions/Handler.php+++ b/app/Exceptions/Handler.php@@ -70,7 +70,7 @@ class Handler extends ExceptionHandlerpublic function render($request, Throwable $e){- if ($this->shouldReport($e) && !in_array(\App::environment(),['testing'])) {+ if ($this->shouldReport($e) && !in_array(\App::environment(),['testing']) && config('logging.channels.slack.enabled')) {Log::channel('slack')->error($e);}diff --git a/config/logging.php b/config/logging.phpindex a4912a9fc..0a97d16b8 100644--- a/config/logging.php+++ b/config/logging.php@@ -55,6 +55,7 @@ return [],'slack' => [+ 'enabled' => env('LOG_SLACK_WEBHOOK_URL') ? true : false,'driver' => 'slack','url' => env('LOG_SLACK_WEBHOOK_URL'),'username' => 'OpenForm Log',