Skip to content

Commit

Permalink
support dump: generate pprof files with debug=1 to avoid generating a…
Browse files Browse the repository at this point in the history
…n unusable heap dump
  • Loading branch information
blotus committed Dec 11, 2024
1 parent dada07b commit a840151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/crowdsec-cli/clisupport/support.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func (cli *cliSupport) dumpPprof(ctx context.Context, zw *zip.Writer, prometheus
ctx,
http.MethodGet,
fmt.Sprintf(
"http://%s/debug/pprof/%s?debug=1",
"http://%s/debug/pprof/%s",

Check warning on line 317 in cmd/crowdsec-cli/clisupport/support.go

View check run for this annotation

Codecov / codecov/patch

cmd/crowdsec-cli/clisupport/support.go#L317

Added line #L317 was not covered by tests
net.JoinHostPort(
prometheusCfg.ListenAddr,
strconv.Itoa(prometheusCfg.ListenPort),
Expand Down

0 comments on commit a840151

Please sign in to comment.