Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replication: Log info about server #935

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

dveeden
Copy link
Collaborator

@dveeden dveeden commented Oct 27, 2024

$ ./bin/go-mysqlbinlog  | head
[2024/10/27 10:29:18] [info] binlogsyncer.go:189 create BinlogSyncer with config {ServerID:101 Flavor:mysql Host:127.0.0.1 Port:3306 User:root Password: Localhost: Charset: SemiSyncEnabled:false RawModeEnabled:false TLSConfig:<nil> ParseTime:false TimestampStringLocation:UTC UseDecimal:true RecvBufferSize:0 HeartbeatPeriod:0s ReadTimeout:0s MaxReconnectAttempts:0 DisableRetrySync:false VerifyChecksum:false DumpCommandFlag:0 Option:<nil> Logger:0xc00013c240 Dialer:0x6d1be0 RowsEventDecodeFunc:<nil> TableMapOptionalMetaDecodeFunc:<nil> DiscardGTIDSet:false EventCacheCount:10240 SynchronousEventHandler:<nil>}
[2024/10/27 10:29:18] [info] binlogsyncer.go:429 begin to sync binlog from position (, 4)
[2024/10/27 10:29:18] [info] binlogsyncer.go:407 Connected to mysql 9.1.0 server
[2024/10/27 10:29:18] [info] binlogsyncer.go:846 rotate to (binlog.000001, 4)
=== RotateEvent ===
Date: 1970-01-01 01:00:00
Log position: 0
Event size: 40
Position: 4
Next log name: binlog.000001

So this adds this:

[2024/10/27 10:29:18] [info] binlogsyncer.go:407 Connected to mysql 9.1.0 server

@lance6716 lance6716 merged commit 03f4d7c into go-mysql-org:master Oct 28, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants