A free open source IT asset/license management system
Got working E_WARNING-in-production going. YAY!
Brady Wetheringtona1b0eaf12899
diff --git a/config/logging.php b/config/logging.phpindex 1e3e3b4932..989925464f 100644--- a/config/logging.php+++ b/config/logging.php@@ -114,10 +114,10 @@ $config = ['access_token' => env('ROLLBAR_TOKEN'),'level' => env('ROLLBAR_LEVEL', 'error'),'check_ignore' => function($isUncaught, $args, $payload) {- if (method_exists($args, 'getMessage') && strstr($args->getMessage(), 'Declaration of')) {- return true;+ if (App::environment('production') && get_class($args) == Rollbar\ErrorWrapper::class && $args->errorLevel == E_WARNING ) {+ \Log::info("IGNORING E_WARNING in production mode: ".$args->getMessage());+ return true; // "TRUE - you should ignore it!"}-return false;},],