@@ -36,14 +36,14 @@ public function __construct(
36
36
37
37
$ this ->socket ->connectToStream ($ config ->host , $ config ->port );
38
38
39
- $ this ->logger ->info ('Connected to ' . $ config ->host . ': ' . $ config ->port );
39
+ $ this ->logger ->debug ('Connected to ' . $ config ->host . ': ' . $ config ->port );
40
40
41
41
$ this ->binLogServerInfo = BinLogServerInfo::make (
42
42
$ this ->getResponse (false ),
43
43
$ this ->repository ->getVersion ()
44
44
);
45
45
46
- $ this ->logger ->info (
46
+ $ this ->logger ->debug (
47
47
'Server version name: ' . $ this ->binLogServerInfo ->versionName . ', revision: ' . $ this ->binLogServerInfo ->versionRevision
48
48
);
49
49
@@ -113,7 +113,7 @@ private function isWriteSuccessful(string $data): void
113
113
114
114
private function authenticate (BinLogAuthPluginMode $ authPlugin ): void
115
115
{
116
- $ this ->logger ->info (
116
+ $ this ->logger ->debug (
117
117
'Trying to authenticate user: ' . $ this ->config ->user . ' using ' . $ authPlugin ->value . ' default plugin '
118
118
);
119
119
@@ -137,7 +137,7 @@ private function authenticate(BinLogAuthPluginMode $authPlugin): void
137
137
$ this ->switchAuth ($ response );
138
138
}
139
139
140
- $ this ->logger ->info ('User authenticated ' );
140
+ $ this ->logger ->debug ('User authenticated ' );
141
141
}
142
142
143
143
private function getAuthData (?BinLogAuthPluginMode $ authPlugin , string $ salt ): string
@@ -196,15 +196,15 @@ private function getBinlogStream(): void
196
196
// master_heartbeat_period is in nanoseconds
197
197
$ this ->executeSQL ('SET @master_heartbeat_period = ' . $ this ->config ->heartbeatPeriod * 1000000000 );
198
198
199
- $ this ->logger ->info ('Heartbeat period set to ' . $ this ->config ->heartbeatPeriod . ' seconds ' );
199
+ $ this ->logger ->debug ('Heartbeat period set to ' . $ this ->config ->heartbeatPeriod . ' seconds ' );
200
200
}
201
201
202
202
if ($ this ->config ->slaveUuid !== '' ) {
203
203
$ this ->executeSQL (
204
204
'SET @slave_uuid = \'' . $ this ->config ->slaveUuid . '\', @replica_uuid = \'' . $ this ->config ->slaveUuid . '\''
205
205
);
206
206
207
- $ this ->logger ->info ('Salve uuid set to ' . $ this ->config ->slaveUuid );
207
+ $ this ->logger ->debug ('Salve uuid set to ' . $ this ->config ->slaveUuid );
208
208
}
209
209
210
210
$ this ->registerSlave ();
@@ -251,7 +251,7 @@ private function registerSlave(): void
251
251
$ this ->socket ->writeToSocket ($ data );
252
252
$ this ->getResponse ();
253
253
254
- $ this ->logger ->info ('Slave registered with id ' . $ this ->config ->slaveId );
254
+ $ this ->logger ->debug ('Slave registered with id ' . $ this ->config ->slaveId );
255
255
}
256
256
257
257
private function setBinLogDumpMariaGtid (): void
@@ -263,7 +263,7 @@ private function setBinLogDumpMariaGtid(): void
263
263
264
264
$ this ->binLogCurrent ->setMariaDbGtid ($ this ->config ->mariaDbGtid );
265
265
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 );
267
267
}
268
268
269
269
private function setBinLogDumpGtid (): void
@@ -286,7 +286,7 @@ private function setBinLogDumpGtid(): void
286
286
287
287
$ this ->binLogCurrent ->setGtid ($ this ->config ->gtid );
288
288
289
- $ this ->logger ->info ('Set GTID to start from: ' . $ this ->config ->gtid );
289
+ $ this ->logger ->debug ('Set GTID to start from: ' . $ this ->config ->gtid );
290
290
}
291
291
292
292
/**
@@ -319,7 +319,7 @@ private function setBinLogDump(): void
319
319
$ this ->binLogCurrent ->setBinLogPosition ($ binFilePos );
320
320
$ this ->binLogCurrent ->setBinFileName ($ binFileName );
321
321
322
- $ this ->logger ->info ('Set binlog to start from: ' . $ binFileName . ': ' . $ binFilePos );
322
+ $ this ->logger ->debug ('Set binlog to start from: ' . $ binFileName . ': ' . $ binFilePos );
323
323
}
324
324
325
325
private function switchAuth (string $ response ): void
@@ -330,7 +330,7 @@ private function switchAuth(string $response): void
330
330
$ salt = BinaryDataReader::decodeNullLength ($ response , $ offset );
331
331
$ auth = $ this ->getAuthData ($ authPluginSwitched , $ salt );
332
332
333
- $ this ->logger ->info ('Auth switch packet received, switching to ' . $ authPluginSwitched ->value );
333
+ $ this ->logger ->debug ('Auth switch packet received, switching to ' . $ authPluginSwitched ->value );
334
334
335
335
$ this ->socket ->writeToSocket (pack ('L ' , (strlen ($ auth )) | (3 << 24 )) . $ auth );
336
336
}
0 commit comments