Change PPROF_PORT var

This commit is contained in:
2024-03-15 05:20:51 -05:00
parent 49630fd79e
commit c444d2c371

View File

@@ -141,7 +141,7 @@ func main() {
if strings.EqualFold(os.Getenv("PPROF_ENABLE"), "true") {
// Start pprof server
go func() {
port := os.Getenv("PPROF_PORT")
port := os.Getenv("PORT")
log.Info().Str("port", port).Msg("Starting pprof server")
err := http.ListenAndServe(":"+port, nil)