8000 [VarDumper] DumpServer: log whenever a payload is received · wucdbm/symfony@7cfc3ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 7cfc3ce

Browse files
committed
[VarDumper] DumpServer: log whenever a payload is received
1 parent 7c90c8b commit 7cfc3ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/VarDumper/Server/DumpServer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ public function listen(callable $callback): void
5252
}
5353

5454
foreach ($this->getMessages() as $clientId => $message) {
55+
if ($this->logger) {
56+
$this->logger->info('Received a payload from client {clientId}', ['clientId' => $clientId]);
57+
}
58+
5559
$payload = @unserialize(base64_decode($message), ['allowed_classes' => [Data::class, Stub::class]]);
5660

5761
// Impossible to decode the message, give up.

0 commit comments

Comments
 (0)
0