0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-06 22:40:28 -05:00
zot/pkg/debug/pprof/pprof_disabled.go

19 lines
445 B
Go
Raw Normal View History

//go:build !profile
// +build !profile
package pprof
import (
"github.com/gorilla/mux"
"zotregistry.io/zot/pkg/api/config"
"zotregistry.io/zot/pkg/log" //nolint:goimports
)
func SetupPprofRoutes(conf *config.Config, router *mux.Router, authFunc mux.MiddlewareFunc,
log log.Logger,
) {
log.Warn().Msg("skipping enabling pprof extension because given zot binary " +
"doesn't include this feature, please build a binary that does so")
}