diff --git a/composer.json b/composer.json index 7810881..4595395 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "supermetrics-public/php-mysql-replication", "description": "Pure PHP Implementation of MySQL replication protocol. This allow you to receive event like insert, update, delete with their data and raw SQL queries.", "type": "library", - "version": "1.0.8", + "version": "1.0.9", "require": { "php": "^8.1 || ^8.2 || ^8.3", "ext-bcmath": "*", diff --git a/src/MySQLReplication/Event/RowEvent/RowEvent.php b/src/MySQLReplication/Event/RowEvent/RowEvent.php index fb135b6..41ad783 100644 --- a/src/MySQLReplication/Event/RowEvent/RowEvent.php +++ b/src/MySQLReplication/Event/RowEvent/RowEvent.php @@ -21,7 +21,6 @@ use MySQLReplication\JsonBinaryDecoder\JsonBinaryDecoderService; use MySQLReplication\Repository\FieldDTO; use MySQLReplication\Repository\RepositoryInterface; -use Psr\Log\LoggerInterface; use RuntimeException; class RowEvent extends EventCommon @@ -294,7 +293,6 @@ public function __construct( private readonly TableMapCache $tableMapCache, private readonly Config $config, protected BinLogServerInfo $binLogServerInfo, - private readonly LoggerInterface $logger ) { parent::__construct($eventInfo, $binaryDataReader, $binLogServerInfo); } @@ -437,8 +435,6 @@ protected function findTableMap(): ?TableMap return $this->tableMapCache->get($tableId); } - $this->logger->info('No table map found for table ID: ' . $tableId); - return null; } diff --git a/src/MySQLReplication/Event/RowEvent/RowEventBuilder.php b/src/MySQLReplication/Event/RowEvent/RowEventBuilder.php index cc904a7..844a962 100644 --- a/src/MySQLReplication/Event/RowEvent/RowEventBuilder.php +++ b/src/MySQLReplication/Event/RowEvent/RowEventBuilder.php @@ -9,7 +9,6 @@ use MySQLReplication\Config\Config; use MySQLReplication\Event\EventInfo; use MySQLReplication\Repository\RepositoryInterface; -use Psr\Log\LoggerInterface; use Psr\SimpleCache\CacheInterface; class RowEventBuilder @@ -22,7 +21,6 @@ public function __construct( private readonly CacheInterface $cache, private readonly Config $config, private readonly BinLogServerInfo $binLogServerInfo, - private readonly LoggerInterface $logger ) { } @@ -39,8 +37,7 @@ public function build(): RowEvent $this->eventInfo, new TableMapCache($this->cache), $this->config, - $this->binLogServerInfo, - $this->logger + $this->binLogServerInfo ); } diff --git a/src/MySQLReplication/MySQLReplicationFactory.php b/src/MySQLReplication/MySQLReplicationFactory.php index 59e9604..bfdc961 100644 --- a/src/MySQLReplication/MySQLReplicationFactory.php +++ b/src/MySQLReplication/MySQLReplicationFactory.php @@ -70,8 +70,7 @@ public function __construct( $repository, $cache, $config, - $this->binLogSocketConnect->getBinLogServerInfo(), - $logger + $this->binLogSocketConnect->getBinLogServerInfo() ) ), $this->eventDispatcher,