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,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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user