mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Correct this logic
This commit is contained in:
@@ -64,6 +64,8 @@ class Handler extends ExceptionHandler
|
|||||||
* will capture specific exception types that we do not want to include
|
* will capture specific exception types that we do not want to include
|
||||||
* the detailed stack traces for since they could reveal credentials to
|
* the detailed stack traces for since they could reveal credentials to
|
||||||
* whoever can read the logs.
|
* whoever can read the logs.
|
||||||
|
*
|
||||||
|
* @noinspection PhpUnusedLocalVariableInspection
|
||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
@@ -71,11 +73,11 @@ class Handler extends ExceptionHandler
|
|||||||
$this->dontReport = [];
|
$this->dontReport = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->reportable(function (PDOException &$ex) {
|
$this->reportable(function (PDOException $ex) {
|
||||||
$ex = $this->generateCleanedExceptionStack($ex);
|
$ex = $this->generateCleanedExceptionStack($ex);
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->reportable(function (Swift_TransportException &$ex) {
|
$this->reportable(function (Swift_TransportException $ex) {
|
||||||
$ex = $this->generateCleanedExceptionStack($ex);
|
$ex = $this->generateCleanedExceptionStack($ex);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user