diff --git a/src/Exceptions/Handler/CommonHandler.php b/src/Exceptions/Handler/CommonHandler.php index 2d02be6..c39c34e 100644 --- a/src/Exceptions/Handler/CommonHandler.php +++ b/src/Exceptions/Handler/CommonHandler.php @@ -72,10 +72,8 @@ class CommonHandler extends ExceptionHandler $message_name = config('common.response.message_name'); $is_testing = config('app_status') === true; $this->request?->url(); - $is_debug = $this->request?->hasHeader('Postman-Token') || str_starts_with( - $this->request?->header('User-Agent', ''), - 'apifox' - ); + + $is_debug = $is_testing; $error_type = $throwable::class; $request_time = Carbon::now()->toDateTimeString(); $request_data = Json::encode($this->request?->getParsedBody());