diff --git a/cmd/main.go b/cmd/main.go index 92ae164..409b141 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -2,6 +2,9 @@ package main import ( "context" + log "github.com/sirupsen/logrus" + "net/http" + _ "net/http/pprof" "os" "os/signal" "syscall" @@ -18,6 +21,12 @@ func main() { logging.LogSetup(c.LogLevel) + if c.Metrics.GinMode != "release" { + go func() { + log.Println(http.ListenAndServe("localhost:6060", nil)) + }() + } + appl := app.New(c) appl.Run(ctx)