diff --git a/comp/process/apiserver/apiserver.go b/comp/process/apiserver/apiserver.go index 46c11ca1ec1ad7..c216b2a93fef46 100644 --- a/comp/process/apiserver/apiserver.go +++ b/comp/process/apiserver/apiserver.go @@ -15,7 +15,7 @@ import ( "go.uber.org/fx" "github.com/DataDog/datadog-agent/cmd/process-agent/api" - logcomp "github.com/DataDog/datadog-agent/comp/core/log/def" + log "github.com/DataDog/datadog-agent/comp/core/log/def" pkgconfigsetup "github.com/DataDog/datadog-agent/pkg/config/setup" ) @@ -30,7 +30,7 @@ type dependencies struct { Lc fx.Lifecycle - Log logcomp.Component + Log log.Component APIServerDeps api.APIServerDeps } @@ -38,7 +38,6 @@ type dependencies struct { //nolint:revive // TODO(PROC) Fix revive linter func newApiServer(deps dependencies) Component { r := mux.NewRouter() - api.SetupAPIServerHandlers(deps.APIServerDeps, r) // Set up routes addr, err := pkgconfigsetup.GetProcessAPIAddressPort(pkgconfigsetup.Datadog())