pprof env

This commit is contained in:
nquidox 2026-03-01 00:05:55 +03:00
parent 8395cf71b4
commit d90682e183
3 changed files with 4 additions and 1 deletions

View file

@ -21,7 +21,7 @@ func main() {
logging.LogSetup(c.LogLevel)
if c.Metrics.GinMode != "release" {
if c.PprofEnabled {
go func() {
log.Println(http.ListenAndServe("localhost:6060", nil))
}()