mirror of
https://github.com/Xevion/banner.git
synced 2025-12-09 16:06:32 -06:00
Change PPROF_PORT var
This commit is contained in:
2
main.go
2
main.go
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user