Skip to content

Commit

Permalink
remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 22, 2023
1 parent 40a3558 commit 9e647c9
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/Channels/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function ping(): void

PusherEvent::ping($this);

Output::info('Connection Pinged', $this->id());
// Output::info('Connection Pinged', $this->id());
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Jobs/PruneStaleConnections.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function handle(ChannelManager $channels): void

$connection->disconnect();

Output::info('Connection Pruned', $connection->id());
// Output::info('Connection Pruned', $connection->id());
});
});
}
Expand Down
18 changes: 9 additions & 9 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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();

Expand All @@ -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);
}
Expand All @@ -75,7 +75,7 @@ public function close(Connection $connection): void

$connection->disconnect();

Output::info('Connection Closed', $connection->id());
// Output::info('Connection Closed', $connection->id());
}

/**
Expand All @@ -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;
}
Expand All @@ -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());
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Servers/ApiGateway/Jobs/SendToConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}
4 changes: 2 additions & 2 deletions src/Servers/Reverb/Console/Commands/StartServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
Expand Down

0 comments on commit 9e647c9

Please sign in to comment.