X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=a1-go%2Fpkg%2Frestful%2Frestful.go;h=56f2360078cb870f8e6a20cf77ea46ba525272ff;hb=6017d6adfa0908db09c0a2d65d05f238b2e945b2;hp=66b66fb97becb26a5948d2e90331dcce707b8623;hpb=327d9dba437b30a06161d4f21cc2a33034d75bac;p=ric-plt%2Fa1.git diff --git a/a1-go/pkg/restful/restful.go b/a1-go/pkg/restful/restful.go index 66b66fb..56f2360 100644 --- a/a1-go/pkg/restful/restful.go +++ b/a1-go/pkg/restful/restful.go @@ -21,16 +21,16 @@ package restful import ( - "fmt" "log" "os" + "gerrit.o-ran-sc.org/r/ric-plt/a1/pkg/a1" + "gerrit.o-ran-sc.org/r/ric-plt/a1/pkg/restapi" + "gerrit.o-ran-sc.org/r/ric-plt/a1/pkg/restapi/operations" + "gerrit.o-ran-sc.org/r/ric-plt/a1/pkg/restapi/operations/a1_mediator" + "gerrit.o-ran-sc.org/r/ric-plt/a1/pkg/resthooks" "github.com/go-openapi/loads" "github.com/go-openapi/runtime/middleware" - "subh.com/a1-go/pkg/restapi" - "subh.com/a1-go/pkg/restapi/operations" - "subh.com/a1-go/pkg/restapi/operations/a1_mediator" - "subh.com/a1-go/pkg/resthooks" ) func NewRestful() *Restful { @@ -49,7 +49,7 @@ func (r *Restful) setupHandler() *operations.A1API { api := operations.NewA1API(swaggerSpec) api.A1MediatorA1ControllerGetAllPolicyTypesHandler = a1_mediator.A1ControllerGetAllPolicyTypesHandlerFunc(func(param a1_mediator.A1ControllerGetAllPolicyTypesParams) middleware.Responder { - fmt.Printf("\n---- handler for get all all policy type --- \n") + a1.Logger.Debug("handler for get all all policy type") return a1_mediator.NewA1ControllerGetAllPolicyTypesOK().WithPayload(r.rh.GetAllPolicyType()) }) return api