Skip to content

Commit b2d5e18

Browse files
committed
feedback
1 parent 909386f commit b2d5e18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/go-mysqlbinlog/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ func main() {
5959

6060
switch *format {
6161
case "json":
62-
cfg.Logger = slog.New(slog.NewJSONHandler(os.Stderr, logOpts))
62+
cfg.Logger = slog.New(slog.NewJSONHandler(os.Stdout, logOpts))
6363
case "plain":
64-
cfg.Logger = slog.New(slog.NewTextHandler(os.Stderr, logOpts))
64+
cfg.Logger = slog.New(slog.NewTextHandler(os.Stdout, logOpts))
6565
default:
6666
panic("unsupported log format")
6767
}

replication/binlogsyncer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func NewBinlogSyncer(cfg BinlogSyncerConfig) *BinlogSyncer {
184184
// Clear the Password to avoid outputting it in logs.
185185
pass := cfg.Password
186186
cfg.Password = ""
187-
cfg.Logger.Debug("create BinlogSyncer", slog.Any("config", cfg))
187+
cfg.Logger.Info("create BinlogSyncer", slog.Any("config", cfg))
188188
cfg.Password = pass
189189

190190
b := new(BinlogSyncer)

0 commit comments

Comments
 (0)