@@ -36,14 +36,14 @@ public function __construct(
3636
3737 $ this ->socket ->connectToStream ($ config ->host , $ config ->port );
3838
39- $ this ->logger ->info ('Connected to ' . $ config ->host . ': ' . $ config ->port );
39+ $ this ->logger ->debug ('Connected to ' . $ config ->host . ': ' . $ config ->port );
4040
4141 $ this ->binLogServerInfo = BinLogServerInfo::make (
4242 $ this ->getResponse (false ),
4343 $ this ->repository ->getVersion ()
4444 );
4545
46- $ this ->logger ->info (
46+ $ this ->logger ->debug (
4747 'Server version name: ' . $ this ->binLogServerInfo ->versionName . ', revision: ' . $ this ->binLogServerInfo ->versionRevision
4848 );
4949
@@ -113,7 +113,7 @@ private function isWriteSuccessful(string $data): void
113113
114114 private function authenticate (BinLogAuthPluginMode $ authPlugin ): void
115115 {
116- $ this ->logger ->info (
116+ $ this ->logger ->debug (
117117 'Trying to authenticate user: ' . $ this ->config ->user . ' using ' . $ authPlugin ->value . ' default plugin '
118118 );
119119
@@ -137,7 +137,7 @@ private function authenticate(BinLogAuthPluginMode $authPlugin): void
137137 $ this ->switchAuth ($ response );
138138 }
139139
140- $ this ->logger ->info ('User authenticated ' );
140+ $ this ->logger ->debug ('User authenticated ' );
141141 }
142142
143143 private function getAuthData (?BinLogAuthPluginMode $ authPlugin , string $ salt ): string
@@ -196,15 +196,15 @@ private function getBinlogStream(): void
196196 // master_heartbeat_period is in nanoseconds
197197 $ this ->executeSQL ('SET @master_heartbeat_period = ' . $ this ->config ->heartbeatPeriod * 1000000000 );
198198
199- $ this ->logger ->info ('Heartbeat period set to ' . $ this ->config ->heartbeatPeriod . ' seconds ' );
199+ $ this ->logger ->debug ('Heartbeat period set to ' . $ this ->config ->heartbeatPeriod . ' seconds ' );
200200 }
201201
202202 if ($ this ->config ->slaveUuid !== '' ) {
203203 $ this ->executeSQL (
204204 'SET @slave_uuid = \'' . $ this ->config ->slaveUuid . '\', @replica_uuid = \'' . $ this ->config ->slaveUuid . '\''
205205 );
206206
207- $ this ->logger ->info ('Salve uuid set to ' . $ this ->config ->slaveUuid );
207+ $ this ->logger ->debug ('Salve uuid set to ' . $ this ->config ->slaveUuid );
208208 }
209209
210210 $ this ->registerSlave ();
@@ -251,7 +251,7 @@ private function registerSlave(): void
251251 $ this ->socket ->writeToSocket ($ data );
252252 $ this ->getResponse ();
253253
254- $ this ->logger ->info ('Slave registered with id ' . $ this ->config ->slaveId );
254+ $ this ->logger ->debug ('Slave registered with id ' . $ this ->config ->slaveId );
255255 }
256256
257257 private function setBinLogDumpMariaGtid (): void
@@ -263,7 +263,7 @@ private function setBinLogDumpMariaGtid(): void
263263
264264 $ this ->binLogCurrent ->setMariaDbGtid ($ this ->config ->mariaDbGtid );
265265
266- $ this ->logger ->info ('Set Maria GTID to start from: ' . $ this ->config ->mariaDbGtid );
266+ $ this ->logger ->debug ('Set Maria GTID to start from: ' . $ this ->config ->mariaDbGtid );
267267 }
268268
269269 private function setBinLogDumpGtid (): void
@@ -286,7 +286,7 @@ private function setBinLogDumpGtid(): void
286286
287287 $ this ->binLogCurrent ->setGtid ($ this ->config ->gtid );
288288
289- $ this ->logger ->info ('Set GTID to start from: ' . $ this ->config ->gtid );
289+ $ this ->logger ->debug ('Set GTID to start from: ' . $ this ->config ->gtid );
290290 }
291291
292292 /**
@@ -319,7 +319,7 @@ private function setBinLogDump(): void
319319 $ this ->binLogCurrent ->setBinLogPosition ($ binFilePos );
320320 $ this ->binLogCurrent ->setBinFileName ($ binFileName );
321321
322- $ this ->logger ->info ('Set binlog to start from: ' . $ binFileName . ': ' . $ binFilePos );
322+ $ this ->logger ->debug ('Set binlog to start from: ' . $ binFileName . ': ' . $ binFilePos );
323323 }
324324
325325 private function switchAuth (string $ response ): void
@@ -330,7 +330,7 @@ private function switchAuth(string $response): void
330330 $ salt = BinaryDataReader::decodeNullLength ($ response , $ offset );
331331 $ auth = $ this ->getAuthData ($ authPluginSwitched , $ salt );
332332
333- $ this ->logger ->info ('Auth switch packet received, switching to ' . $ authPluginSwitched ->value );
333+ $ this ->logger ->debug ('Auth switch packet received, switching to ' . $ authPluginSwitched ->value );
334334
335335 $ this ->socket ->writeToSocket (pack ('L ' , (strlen ($ auth )) | (3 << 24 )) . $ auth );
336336 }
0 commit comments