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,5 +1,7 @@
<?php
declare(strict_types=1);
namespace App\Framework\Config;
use App\Framework\DateTime\Timezone;
@@ -11,8 +13,34 @@ final readonly class AppConfig
public string $version = '1.0.0',
public string $environment = 'production',
public bool $debug = false,
public Timezone $timezone = Timezone::DEFAULT,
public Timezone $timezone = Timezone::EuropeBerlin,
public string $locale = 'en',
public EnvironmentType $type = EnvironmentType::DEV
) {}
) {
}
public function isProduction(): bool
{
return $this->type->isProduction();
}
public function isDevelopment(): bool
{
return $this->type->isDevelopment();
}
public function isStaging(): bool
{
return $this->type->isStaging();
}
public function isProductionLike(): bool
{
return $this->type->isProductionLike();
}
public function isDebugEnabled(): bool
{
return $this->debug || $this->type->isDebugEnabled();
}
}