diff --git a/go.mod b/go.mod index 289a588e..04a5860e 100644 --- a/go.mod +++ b/go.mod @@ -32,7 +32,7 @@ require ( github.com/stretchr/testify v1.9.0 github.com/xelabs/go-mysqlstack v1.0.0 go.uber.org/zap v1.27.0 - go.uber.org/zap/exp v0.2.0 + go.uber.org/zap/exp v0.3.0 golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 golang.org/x/oauth2 v0.23.0 golang.org/x/sync v0.9.0 diff --git a/go.sum b/go.sum index 3535ed4b..bd39950e 100644 --- a/go.sum +++ b/go.sum @@ -175,8 +175,8 @@ go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= -go.uber.org/zap/exp v0.2.0 h1:FtGenNNeCATRB3CmB/yEUnjEFeJWpB/pMcy7e2bKPYs= -go.uber.org/zap/exp v0.2.0/go.mod h1:t0gqAIdh1MfKv9EwN/dLwfZnJxe9ITAZN78HEWPFWDQ= +go.uber.org/zap/exp v0.3.0 h1:6JYzdifzYkGmTdRR59oYH+Ng7k49H9qVpWwNSsGJj3U= +go.uber.org/zap/exp v0.3.0/go.mod h1:5I384qq7XGxYyByIhHm6jg5CHkGY0nsTfbDLgDDlgJQ= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk= diff --git a/internal/proxyutil/psdb.go b/internal/proxyutil/psdb.go index 5482617d..47fee07c 100644 --- a/internal/proxyutil/psdb.go +++ b/internal/proxyutil/psdb.go @@ -20,7 +20,7 @@ type Config struct { func New(cfg Config) *psdbproxy.Server { return &psdbproxy.Server{ Addr: cfg.LocalAddr, - Logger: slog.New(zapslog.NewHandler(cfg.Logger.Core(), nil)), + Logger: slog.New(zapslog.NewHandler(cfg.Logger.Core())), UpstreamAddr: cfg.UpstreamAddr, Authorization: auth.NewBasicAuth(cfg.Username, cfg.Password), }