瀏覽代碼

remove print statements

Alexander Belanger 4 年之前
父節點
當前提交
c940ffcc7a

+ 0 - 3
provisioner/integrations/provisioner/local/local_provisioner.go

@@ -26,9 +26,6 @@ func NewLocalProvisioner(pc *LocalProvisionerConfig) *LocalProvisioner {
 }
 
 func (l *LocalProvisioner) Provision(opts *provisioner.ProvisionOpts) error {
-	// TODO: check that porter-provisioner command exists on the host
-	fmt.Println("running local provisioner with workspace id: ", models.GetWorkspaceID(opts.Infra, opts.Operation))
-
 	// TODO: allow cancellation -- this is just to simulate behavior
 	go func() {
 		cmdProv := exec.Command("porter-provisioner", string(opts.OperationKind))

+ 0 - 3
provisioner/server/handlers/provision/apply.go

@@ -37,7 +37,6 @@ func NewProvisionApplyHandler(
 
 func (c *ProvisionApplyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 	// read the project and infra from the attached scope
-	project, _ := r.Context().Value(types.ProjectScope).(*models.Project)
 	infra, _ := r.Context().Value(types.InfraScope).(*models.Infra)
 
 	req := &ptypes.ApplyBaseRequest{}
@@ -46,8 +45,6 @@ func (c *ProvisionApplyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request
 		return
 	}
 
-	fmt.Printf("provisioning: %d, %d\n", project.ID, infra.ID)
-
 	// create a new operation and write it to the database
 	operationUID, err := models.GetOperationID()
 

+ 0 - 3
provisioner/server/handlers/provision/destroy.go

@@ -34,11 +34,8 @@ func NewProvisionDestroyHandler(
 
 func (c *ProvisionDestroyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 	// read the project and infra from the attached scope
-	project, _ := r.Context().Value(types.ProjectScope).(*models.Project)
 	infra, _ := r.Context().Value(types.InfraScope).(*models.Infra)
 
-	fmt.Printf("destroying: %d, %d\n", project.ID, infra.ID)
-
 	req := &ptypes.DeleteBaseRequest{}
 
 	if ok := c.decoderValidator.DecodeAndValidate(w, r, req); !ok {

+ 0 - 3
provisioner/server/handlers/state/delete_resource.go

@@ -1,7 +1,6 @@
 package state
 
 import (
-	"fmt"
 	"net/http"
 
 	"github.com/porter-dev/porter/api/server/shared"
@@ -30,8 +29,6 @@ func (c *DeleteResourceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request
 	infra, _ := r.Context().Value(types.InfraScope).(*models.Infra)
 	operation, _ := r.Context().Value(types.OperationScope).(*models.Operation)
 
-	fmt.Println("destroying", infra.ID, operation.UID)
-
 	// update the operation to indicate completion
 	operation.Status = "completed"