File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -492,6 +492,8 @@ We pass all tests in https://github.com/bradfitz/go-sql-test using go-mysql driv
492
492
493
493
Logging uses [ log/slog] ( https://pkg.go.dev/log/slog ) and by default is sent to standard out.
494
494
495
+ For the old logging package ` github.com/siddontang/go-log/log ` , a converting package
496
+ ` https://github.com/serprex/slog-siddontang ` is available.
495
497
## How to migrate to this repo
496
498
To change the used package in your repo it's enough to add this ` replace ` directive to your ` go.mod ` :
497
499
```
Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ func NewBinlogSyncer(cfg BinlogSyncerConfig) *BinlogSyncer {
171
171
cfg .Logger = slog .Default ()
172
172
}
173
173
if cfg .ServerID == 0 {
174
+ cfg .Logger .Error ("can't use 0 as the server ID, will panic" )
174
175
panic ("can't use 0 as the server ID" )
175
176
}
176
177
if cfg .Dialer == nil {
You can’t perform that action at this time.
0 commit comments