Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Api;
|
||||
|
||||
use App\Framework\Exception\ExceptionContext;
|
||||
use App\Framework\Exception\FrameworkException;
|
||||
use App\Framework\HttpClient\ClientResponse;
|
||||
use RuntimeException;
|
||||
|
||||
class ApiException extends RuntimeException
|
||||
class ApiException extends FrameworkException
|
||||
{
|
||||
public function __construct(
|
||||
string $message,
|
||||
int $code,
|
||||
private readonly ClientResponse $response
|
||||
) {
|
||||
parent::__construct($message, $code);
|
||||
parent::__construct($message, ExceptionContext::empty(), $code);
|
||||
}
|
||||
|
||||
public function getResponse(): ClientResponse
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Api;
|
||||
@@ -7,13 +8,14 @@ use App\Framework\Http\Method;
|
||||
use App\Framework\HttpClient\ClientOptions;
|
||||
use App\Framework\HttpClient\ClientRequest;
|
||||
use App\Framework\HttpClient\ClientResponse;
|
||||
use App\Framework\HttpClient\CurlHttpClient;
|
||||
use App\Framework\HttpClient\HttpClient;
|
||||
|
||||
trait ApiRequestTrait
|
||||
{
|
||||
private string $baseUrl;
|
||||
|
||||
private ClientOptions $defaultOptions;
|
||||
|
||||
private HttpClient $httpClient;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user