Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 679a8d0

Browse files
committed
Fixed logger
1 parent d11daad commit 679a8d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/websockets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
* The Statistics Logger will, by default, handle the incoming statistics, store them
8686
* and then release them into the database on each interval defined below.
8787
*/
88-
'logger' => \BeyondCode\LaravelWebSockets\Statistics\Logger::class,
88+
'logger' => BeyondCode\LaravelWebSockets\Statistics\Logger\HttpStatisticsLogger::class,
8989

9090
/*
9191
* Here you can specify the interval in seconds at which statistics should be logged.

src/Console/StartWebSocketServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function configureStatisticsLogger()
6565
$browser = new Browser($this->loop, $connector);
6666

6767
app()->singleton(StatisticsLoggerInterface::class, function () use ($browser) {
68-
$class = config('websockets.statistics.logger', \BeyondCode\LaravelWebSockets\Statistics\Logger::class);
68+
$class = config('websockets.statistics.logger', \BeyondCode\LaravelWebSockets\Statistics\Logger\HttpStatisticsLogger::class);
6969

7070
return new $class(app(ChannelManager::class), $browser);
7171
});

0 commit comments

Comments
 (0)