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:
33
src/Framework/Discovery/Events/DiscoveryStartedEvent.php
Normal file
33
src/Framework/Discovery/Events/DiscoveryStartedEvent.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Discovery\Events;
|
||||
|
||||
use App\Framework\Core\ValueObjects\Timestamp;
|
||||
use App\Framework\Discovery\ValueObjects\ScanType;
|
||||
|
||||
/**
|
||||
* Event fired when discovery process starts
|
||||
*/
|
||||
final readonly class DiscoveryStartedEvent
|
||||
{
|
||||
public function __construct(
|
||||
public int $estimatedFiles,
|
||||
public array $directories,
|
||||
public ScanType $scanType,
|
||||
public Timestamp $timestamp
|
||||
) {
|
||||
}
|
||||
|
||||
public function toArray(): array
|
||||
{
|
||||
return [
|
||||
'estimated_files' => $this->estimatedFiles,
|
||||
'directories' => $this->directories,
|
||||
'scan_type' => $this->scanType->value,
|
||||
'scan_type_description' => $this->scanType->getDescription(),
|
||||
'timestamp' => $this->timestamp->toFloat(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user