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,12 +1,13 @@
<?php
declare(strict_types=1);
namespace App\Framework\Console\Components;
use App\Framework\Console\ConsoleStyle;
use App\Framework\Console\ConsoleColor;
use App\Framework\Console\ConsoleFormat;
use App\Framework\Console\ConsoleOutput;
use App\Framework\Console\ConsoleStyle;
/**
* TreeHelper zum Anzeigen hierarchischer Baumstrukturen in der Konsole.
@@ -15,9 +16,13 @@ use App\Framework\Console\ConsoleOutput;
final class TreeHelper
{
private string $prefix = '';
private bool $isLastElement = true;
private ?ConsoleStyle $nodeStyle = null;
private ?ConsoleStyle $leafStyle = null;
private ?ConsoleStyle $lineStyle = null;
/**
@@ -40,6 +45,7 @@ final class TreeHelper
public function setNodeStyle(?ConsoleStyle $style): self
{
$this->nodeStyle = $style;
return $this;
}
@@ -49,6 +55,7 @@ final class TreeHelper
public function setLeafStyle(?ConsoleStyle $style): self
{
$this->leafStyle = $style;
return $this;
}
@@ -58,6 +65,7 @@ final class TreeHelper
public function setLineStyle(?ConsoleStyle $style): self
{
$this->lineStyle = $style;
return $this;
}
@@ -67,6 +75,7 @@ final class TreeHelper
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
@@ -83,7 +92,7 @@ final class TreeHelper
$this->nodes[] = [
'title' => $title,
'node' => $node,
'isLeaf' => false
'isLeaf' => false,
];
return $node;
@@ -97,7 +106,7 @@ final class TreeHelper
$this->nodes[] = [
'title' => $title,
'node' => null,
'isLeaf' => true
'isLeaf' => true,
];
return $this;
@@ -108,7 +117,7 @@ final class TreeHelper
*/
public function display(): void
{
if (!empty($this->title)) {
if (! empty($this->title)) {
$this->output->writeLine($this->title, $this->nodeStyle);
}
@@ -122,7 +131,7 @@ final class TreeHelper
{
$output = '';
if (!empty($this->title)) {
if (! empty($this->title)) {
$output .= $this->nodeStyle->apply($this->title) . "\n";
}
@@ -139,6 +148,7 @@ final class TreeHelper
{
$this->prefix = $prefix;
$this->isLastElement = $isLastElement;
return $this;
}
@@ -168,7 +178,7 @@ final class TreeHelper
);
// Unterelemente rekursiv anzeigen
if (!$item['isLeaf'] && $item['node'] !== null) {
if (! $item['isLeaf'] && $item['node'] !== null) {
$item['node']
->setPrefix($nodePrefix, $isLast)
->displayTree();
@@ -201,7 +211,7 @@ final class TreeHelper
$style->apply($title) . "\n";
// Unterelemente rekursiv rendern
if (!$item['isLeaf'] && $item['node'] !== null) {
if (! $item['isLeaf'] && $item['node'] !== null) {
$childOutput = $item['node']
->setPrefix($nodePrefix, $isLast)
->renderTree();