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,4 +1,5 @@
<?php
declare(strict_types=1);
namespace App\Framework\Router\Result;
@@ -46,7 +47,8 @@ final class WebSocketResult implements ActionResult
public function __construct(
public readonly Status $status = Status::SWITCHING_PROTOCOLS,
public readonly array $headers = []
) {}
) {
}
/**
* Setzt den Handler für neue Verbindungen
@@ -56,6 +58,7 @@ final class WebSocketResult implements ActionResult
public function onConnect(callable $handler): self
{
$this->onConnect = $handler;
return $this;
}
@@ -67,6 +70,7 @@ final class WebSocketResult implements ActionResult
public function onMessage(callable $handler): self
{
$this->onMessage = $handler;
return $this;
}
@@ -78,6 +82,7 @@ final class WebSocketResult implements ActionResult
public function onClose(callable $handler): self
{
$this->onClose = $handler;
return $this;
}
@@ -89,6 +94,7 @@ final class WebSocketResult implements ActionResult
public function onError(callable $handler): self
{
$this->onError = $handler;
return $this;
}
@@ -98,6 +104,7 @@ final class WebSocketResult implements ActionResult
public function withSubprotocols(array $subprotocols): self
{
$this->subprotocols = $subprotocols;
return $this;
}
@@ -107,6 +114,7 @@ final class WebSocketResult implements ActionResult
public function withMaxMessageSize(int $bytes): self
{
$this->maxMessageSize = $bytes;
return $this;
}
@@ -116,15 +124,43 @@ final class WebSocketResult implements ActionResult
public function withPingInterval(int $seconds): self
{
$this->pingInterval = $seconds;
return $this;
}
// Getter
public function getOnConnect(): ?callable { return $this->onConnect; }
public function getOnMessage(): ?callable { return $this->onMessage; }
public function getOnClose(): ?callable { return $this->onClose; }
public function getOnError(): ?callable { return $this->onError; }
public function getSubprotocols(): array { return $this->subprotocols; }
public function getMaxMessageSize(): int { return $this->maxMessageSize; }
public function getPingInterval(): int { return $this->pingInterval; }
public function getOnConnect(): ?callable
{
return $this->onConnect;
}
public function getOnMessage(): ?callable
{
return $this->onMessage;
}
public function getOnClose(): ?callable
{
return $this->onClose;
}
public function getOnError(): ?callable
{
return $this->onError;
}
public function getSubprotocols(): array
{
return $this->subprotocols;
}
public function getMaxMessageSize(): int
{
return $this->maxMessageSize;
}
public function getPingInterval(): int
{
return $this->pingInterval;
}
}