Merge pull request #12517 from uberbrady/silence_ldap_exceptions

Silence E_WARNING "exceptions"
This commit is contained in:
snipe
2023-02-15 11:56:37 -08:00
committed by GitHub
2 changed files with 10 additions and 2 deletions
+3 -1
View File
@@ -41,7 +41,9 @@ class Handler extends ExceptionHandler
public function report(Throwable $exception)
{
if ($this->shouldReport($exception)) {
\Log::error($exception);
if (class_exists(\Log::class)) {
\Log::error($exception);
}
return parent::report($exception);
}
}