mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-17 11:53:09 -06:00
Space
This commit is contained in:
parent
db15ab10b9
commit
01dc5985ad
|
|
@ -84,7 +84,7 @@ func callerPrettyfier(f *runtime.Frame) (string, string) {
|
||||||
// simplest, and it gives us the freedom to run pprof on a separate port.
|
// simplest, and it gives us the freedom to run pprof on a separate port.
|
||||||
func SetupPprof() {
|
func SetupPprof() {
|
||||||
if hostPort := os.Getenv("PPROFLISTEN"); hostPort != "" {
|
if hostPort := os.Getenv("PPROFLISTEN"); hostPort != "" {
|
||||||
logrus.Warn("Starting pprof on", hostPort)
|
logrus.Warn("Starting pprof on ", hostPort)
|
||||||
go func() {
|
go func() {
|
||||||
logrus.WithError(http.ListenAndServe(hostPort, nil)).Error("Failed to setup pprof listener")
|
logrus.WithError(http.ListenAndServe(hostPort, nil)).Error("Failed to setup pprof listener")
|
||||||
}()
|
}()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue