From 2491c2c0c38c1b038b3866a3790aa3a8c1f321cc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 08:09:48 +0000 Subject: [PATCH] Bump code.cloudfoundry.org/debugserver from 0.19.0 to 0.20.0 Bumps [code.cloudfoundry.org/debugserver](https://github.com/cloudfoundry/debugserver) from 0.19.0 to 0.20.0. - [Release notes](https://github.com/cloudfoundry/debugserver/releases) - [Commits](https://github.com/cloudfoundry/debugserver/compare/v0.19.0...v0.20.0) --- updated-dependencies: - dependency-name: code.cloudfoundry.org/debugserver dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- vendor/code.cloudfoundry.org/debugserver/server.go | 10 +++++++--- vendor/modules.txt | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index 8540e04..b1d0e1f 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ toolchain go1.22.5 require ( code.cloudfoundry.org/bbs v0.0.0-20231204223625-b4a8e8d97ad9 code.cloudfoundry.org/clock v1.17.0 - code.cloudfoundry.org/debugserver v0.19.0 + code.cloudfoundry.org/debugserver v0.20.0 code.cloudfoundry.org/lager/v3 v3.11.0 code.cloudfoundry.org/localip v0.15.0 code.cloudfoundry.org/locket v0.0.0-20230406154009-5e8522d975d2 diff --git a/go.sum b/go.sum index 2991636..9368f77 100644 --- a/go.sum +++ b/go.sum @@ -598,8 +598,8 @@ code.cloudfoundry.org/cfhttp/v2 v2.0.1-0.20210513172332-4c5ee488a657 h1:8rnhkeAe code.cloudfoundry.org/cfhttp/v2 v2.0.1-0.20210513172332-4c5ee488a657/go.mod h1:Fwt0o/haXfwgOHMom4AM96pXCVw9EAiIcSsPb8hWK9s= code.cloudfoundry.org/clock v1.17.0 h1:0Zo1EIJkYSQdo6vv97rt5gzSXymjyXnjOzashoKEO6w= code.cloudfoundry.org/clock v1.17.0/go.mod h1:5SbAgLf/ZTQY11g3jB68e94/DKtZHr9DJbD8h6xUdTg= -code.cloudfoundry.org/debugserver v0.19.0 h1:xDa0sNnhBwKDyWSzr7FRI3TSN5TSsgmlcIdoH/MRLxY= -code.cloudfoundry.org/debugserver v0.19.0/go.mod h1:GBOH2js5g55cRF11VMDp7tQAngiazC4D1TX32eLpp5w= +code.cloudfoundry.org/debugserver v0.20.0 h1:U3wMgfaoaU0sn9x+D/2/YmDV31+gN1azFNc7ZVWUkmg= +code.cloudfoundry.org/debugserver v0.20.0/go.mod h1:GBOH2js5g55cRF11VMDp7tQAngiazC4D1TX32eLpp5w= code.cloudfoundry.org/diego-logging-client v0.0.0-20220314190632-277a9c460661 h1:eHcuzTrEe+7sRDquLWWwEgkBy/7BWvi1GxkLtSMcrh8= code.cloudfoundry.org/diego-logging-client v0.0.0-20220314190632-277a9c460661/go.mod h1:OwueZ/llUuNwnACg5OmolEjLtq8ixVOXdcLm+4B6v4M= code.cloudfoundry.org/durationjson v0.0.0-20200131001738-04c274cd71ed h1:hSvlHcyx91CyefH4h8og5Xrz2gK0KSRbqPcvRXXwho8= diff --git a/vendor/code.cloudfoundry.org/debugserver/server.go b/vendor/code.cloudfoundry.org/debugserver/server.go index f45137b..e1fbd4e 100644 --- a/vendor/code.cloudfoundry.org/debugserver/server.go +++ b/vendor/code.cloudfoundry.org/debugserver/server.go @@ -21,6 +21,10 @@ type DebugServerConfig struct { DebugAddress string `json:"debug_address"` } +type ReconfigurableSinkInterface interface { + SetMinLevel(level lager.LogLevel) +} + func AddFlags(flags *flag.FlagSet) { flags.String( DebugFlag, @@ -38,11 +42,11 @@ func DebugAddress(flags *flag.FlagSet) string { return dbgFlag.Value.String() } -func Runner(address string, sink *lager.ReconfigurableSink) ifrit.Runner { +func Runner(address string, sink ReconfigurableSinkInterface) ifrit.Runner { return http_server.New(address, Handler(sink)) } -func Run(address string, sink *lager.ReconfigurableSink) (ifrit.Process, error) { +func Run(address string, sink ReconfigurableSinkInterface) (ifrit.Process, error) { p := ifrit.Invoke(Runner(address, sink)) select { case <-p.Ready(): @@ -52,7 +56,7 @@ func Run(address string, sink *lager.ReconfigurableSink) (ifrit.Process, error) return p, nil } -func Handler(sink *lager.ReconfigurableSink) http.Handler { +func Handler(sink ReconfigurableSinkInterface) http.Handler { mux := http.NewServeMux() mux.Handle("/debug/pprof/", http.HandlerFunc(pprof.Index)) mux.Handle("/debug/pprof/trace", http.HandlerFunc(pprof.Trace)) diff --git a/vendor/modules.txt b/vendor/modules.txt index c1cd65d..1949f5c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -15,7 +15,7 @@ code.cloudfoundry.org/cfhttp/v2 # code.cloudfoundry.org/clock v1.17.0 ## explicit; go 1.22.0 code.cloudfoundry.org/clock -# code.cloudfoundry.org/debugserver v0.19.0 +# code.cloudfoundry.org/debugserver v0.20.0 ## explicit; go 1.22.0 code.cloudfoundry.org/debugserver # code.cloudfoundry.org/diego-logging-client v0.0.0-20220314190632-277a9c460661