Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #107 from buggregator/hotfix/monolog-handler
Browse files Browse the repository at this point in the history
Fixes problem with receiving logs from monolog in Long running applications
  • Loading branch information
butschster committed Nov 20, 2022
2 parents 6578ce4 + 7fb5496 commit 7166997
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions .rr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ tcp:
servers:
monolog:
addr: 0.0.0.0:9913
delimiter: "\n"
var-dumper:
addr: 0.0.0.0:9912
smtp:
Expand Down
5 changes: 0 additions & 5 deletions app/Infrastructure/RoadRunner/Broadcast/RoadrunnerClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Infrastructure\RoadRunner\Broadcast;

use App\Contracts\WebsocketClient;
use LogicException;
use Spiral\Goridge\RPC\RPC;
use Spiral\RoadRunner\Broadcast\Broadcast;

Expand All @@ -19,10 +18,6 @@ public function sendEvent(string $topic, array $event): void
{
$broadcast = new Broadcast(RPC::create($this->host));

if (! $broadcast->isAvailable()) {
throw new LogicException('The [broadcast] plugin not available');
}

$broadcast->publish($topic, json_encode($event));
}
}

0 comments on commit 7166997

Please sign in to comment.