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:
2025-08-11 20:13:26 +02:00
parent 59fd3dd3b1
commit 55a330b223
3683 changed files with 2956207 additions and 16948 deletions

View File

@@ -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

View File

@@ -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;
/**