Add some logs

This commit is contained in:
2021-09-13 23:49:15 +03:00
parent 7984d09e83
commit 56cdda1a0d
3 changed files with 29 additions and 0 deletions

View File

@ -69,6 +69,12 @@ final class Consumer extends Connection
return call(function (): \Generator {
yield parent::connect();
$this->logger->debug('Consumer {topic}:{channel} connected to {host}', [
'topic' => $this->topic,
'channel' => $this->channel,
'host' => $this->address,
]);
$this->run();
});
}