diff --git a/go.mod b/go.mod index 26285b419..3002090e3 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.13 require ( github.com/agext/levenshtein v1.2.2 // indirect github.com/apparentlymart/go-textseg v1.0.0 - github.com/creachadair/jrpc2 v0.28.5 + github.com/creachadair/jrpc2 v0.30.0 github.com/fsnotify/fsnotify v1.5.1 github.com/google/go-cmp v0.5.6 github.com/google/uuid v1.2.0 // indirect diff --git a/go.sum b/go.sum index 30fd86368..d2d2b2b22 100644 --- a/go.sum +++ b/go.sum @@ -73,8 +73,8 @@ github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3Ee github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/creachadair/jrpc2 v0.28.5 h1:kN3UQBM7IZDEJc0CIfqLId1LHsPxx9gRs1G7COn839o= -github.com/creachadair/jrpc2 v0.28.5/go.mod h1:w+GXZGc+NwsH0xsUOgeLBIIRM0jBOSTXhv28KaWGRZU= +github.com/creachadair/jrpc2 v0.30.0 h1:WYC+oqMxj3XEnaYg1l2gurtiawcRP7g8BLC0p8rpZkc= +github.com/creachadair/jrpc2 v0.30.0/go.mod h1:w+GXZGc+NwsH0xsUOgeLBIIRM0jBOSTXhv28KaWGRZU= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= diff --git a/internal/langserver/langserver.go b/internal/langserver/langserver.go index 6acb11eb3..ec8d37525 100644 --- a/internal/langserver/langserver.go +++ b/internal/langserver/langserver.go @@ -65,7 +65,7 @@ func DefaultConcurrency() int { } func (ls *langServer) SetLogger(logger *log.Logger) { - ls.srvOptions.Logger = logger + ls.srvOptions.Logger = jrpc2.StdLogger(logger) ls.srvOptions.RPCLog = &rpcLogger{logger} ls.logger = logger } diff --git a/internal/langserver/langserver_mock.go b/internal/langserver/langserver_mock.go index f1f1d531c..3e0948bed 100644 --- a/internal/langserver/langserver_mock.go +++ b/internal/langserver/langserver_mock.go @@ -96,7 +96,7 @@ func (lsm *langServerMock) Start(t *testing.T) context.CancelFunc { clientCh := channel.LSP(lsm.clientStdin, lsm.clientStdout) opts := &jrpc2.ClientOptions{} if testing.Verbose() { - opts.Logger = testLogger(os.Stdout, "[CLIENT] ") + opts.Logger = jrpc2.StdLogger(testLogger(os.Stdout, "[CLIENT] ")) } lsm.client = jrpc2.NewClient(clientCh, opts)