File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments