diff --git a/src/Channels/Channel.php b/src/Channels/Channel.php index 962c2f3f..a7445ded 100644 --- a/src/Channels/Channel.php +++ b/src/Channels/Channel.php @@ -101,8 +101,8 @@ public function broadcast(Application $app, array $payload, Connection $except = ) ); } catch (Exception $e) { - Output::error('Broadcasting to '.$connection->id().' resulted in an error'); - Output::info($e->getMessage()); + // Output::error('Broadcasting to '.$connection->id().' resulted in an error'); + // Output::info($e->getMessage()); } }); } diff --git a/src/Contracts/Connection.php b/src/Contracts/Connection.php index ea6cdfe8..16646dd7 100644 --- a/src/Contracts/Connection.php +++ b/src/Contracts/Connection.php @@ -72,7 +72,7 @@ public function ping(): void PusherEvent::ping($this); - Output::info('Connection Pinged', $this->id()); + // Output::info('Connection Pinged', $this->id()); } /** diff --git a/src/Jobs/PruneStaleConnections.php b/src/Jobs/PruneStaleConnections.php index 364dd89c..72a1fff6 100644 --- a/src/Jobs/PruneStaleConnections.php +++ b/src/Jobs/PruneStaleConnections.php @@ -36,7 +36,7 @@ public function handle(ChannelManager $channels): void $connection->disconnect(); - Output::info('Connection Pruned', $connection->id()); + // Output::info('Connection Pruned', $connection->id()); }); }); } diff --git a/src/Server.php b/src/Server.php index e9c64a49..68bddc50 100644 --- a/src/Server.php +++ b/src/Server.php @@ -29,7 +29,7 @@ public function open(Connection $connection): void PusherEvent::handle($connection, 'pusher:connection_established'); - Output::info('Connection Established', $connection->id()); + // Output::info('Connection Established', $connection->id()); } catch (Exception $e) { $this->error($connection, $e); } @@ -40,8 +40,8 @@ public function open(Connection $connection): void */ public function message(Connection $from, string $message): void { - Output::info('Message Received', $from->id()); - Output::message($message); + // Output::info('Message Received', $from->id()); + // Output::message($message); $from->touch(); @@ -58,7 +58,7 @@ public function message(Connection $from, string $message): void default => ClientEvent::handle($from, $event) }; - Output::info('Message Handled', $from->id()); + // Output::info('Message Handled', $from->id()); } catch (Exception $e) { $this->error($from, $e); } @@ -75,7 +75,7 @@ public function close(Connection $connection): void $connection->disconnect(); - Output::info('Connection Closed', $connection->id()); + // Output::info('Connection Closed', $connection->id()); } /** @@ -86,8 +86,8 @@ public function error(Connection $connection, Exception $exception): void if ($exception instanceof PusherException) { $connection->send(json_encode($exception->payload())); - Output::error('Message from '.$connection->id().' resulted in a pusher error'); - Output::info($exception->getMessage()); + // Output::error('Message from '.$connection->id().' resulted in a pusher error'); + // Output::info($exception->getMessage()); return; } @@ -100,8 +100,8 @@ public function error(Connection $connection, Exception $exception): void ]), ])); - Output::error('Message from '.$connection->id().' resulted in an unknown error'); - Output::info($exception->getMessage()); + // Output::error('Message from '.$connection->id().' resulted in an unknown error'); + // Output::info($exception->getMessage()); } /** diff --git a/src/Servers/ApiGateway/Jobs/SendToConnection.php b/src/Servers/ApiGateway/Jobs/SendToConnection.php index 0c60bbd8..451e1962 100644 --- a/src/Servers/ApiGateway/Jobs/SendToConnection.php +++ b/src/Servers/ApiGateway/Jobs/SendToConnection.php @@ -37,8 +37,8 @@ public function handle(): void 'Data' => $this->message, ]); } catch (Throwable $e) { - Output::error('Unable to send message.'); - Output::info($e->getMessage()); + // Output::error('Unable to send message.'); + // Output::info($e->getMessage()); } } } diff --git a/src/Servers/Reverb/Console/Commands/StartServer.php b/src/Servers/Reverb/Console/Commands/StartServer.php index dee06e39..155f5931 100644 --- a/src/Servers/Reverb/Console/Commands/StartServer.php +++ b/src/Servers/Reverb/Console/Commands/StartServer.php @@ -59,10 +59,10 @@ public function handle(): void protected function scheduleCleanup(LoopInterface $loop): void { $loop->addPeriodicTimer(60, function () { - Output::info('Pruning Stale Connections'); + // Output::info('Pruning Stale Connections'); PruneStaleConnections::dispatch(); - Output::info('Pinging Inactive Connections'); + // Output::info('Pinging Inactive Connections'); PingInactiveConnections::dispatch(); }); }