mirror of
https://github.com/Xevion/banner.git
synced 2025-12-14 16:11:04 -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") {
|
if strings.EqualFold(os.Getenv("PPROF_ENABLE"), "true") {
|
||||||
// Start pprof server
|
// Start pprof server
|
||||||
go func() {
|
go func() {
|
||||||
port := os.Getenv("PPROF_PORT")
|
port := os.Getenv("PORT")
|
||||||
log.Info().Str("port", port).Msg("Starting pprof server")
|
log.Info().Str("port", port).Msg("Starting pprof server")
|
||||||
err := http.ListenAndServe(":"+port, nil)
|
err := http.ListenAndServe(":"+port, nil)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user