diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 59c585dc..d69cdbc6 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -4,6 +4,7 @@ namespace App\Exceptions; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Throwable; +use Zoomyboy\LaravelNami\NamiException; class Handler extends ExceptionHandler { @@ -36,6 +37,13 @@ class Handler extends ExceptionHandler */ public function report(Throwable $exception) { + if (is_a($exception, NamiException::class)) { + \Log::error($exception->getMessage(), [ + 'request' => $exception->request, + 'response' => $exception->response + ]); + } + parent::report($exception); }