From 1e8cb980980b6cd8e134969444e6165125ca3d84 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 5 Aug 2024 08:50:20 +0200 Subject: [PATCH] kick out print --- dbs/mongo/mongo.go | 2 -- models/workflow/workflow_mongo_accessor.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/dbs/mongo/mongo.go b/dbs/mongo/mongo.go index 7dd883e..afe42e4 100644 --- a/dbs/mongo/mongo.go +++ b/dbs/mongo/mongo.go @@ -3,7 +3,6 @@ package mongo import ( "context" "errors" - "fmt" "time" "cloud.o-forge.io/core/oc-lib/dbs" @@ -290,7 +289,6 @@ func (m *MongoDB) Search(filters *dbs.Filters, collection_name string) (*mongo.C MngoCtx, cancel = context.WithTimeout(context.Background(), 10*time.Second) defer cancel() - fmt.Printf("Filter: %v %v %v\n", f, filters, filters.And) if cursor, err := targetDBCollection.Find( MngoCtx, f, diff --git a/models/workflow/workflow_mongo_accessor.go b/models/workflow/workflow_mongo_accessor.go index 801bda1..cf2fc7e 100644 --- a/models/workflow/workflow_mongo_accessor.go +++ b/models/workflow/workflow_mongo_accessor.go @@ -2,7 +2,6 @@ package oclib import ( "errors" - "fmt" "cloud.o-forge.io/core/oc-lib/dbs" "cloud.o-forge.io/core/oc-lib/dbs/mongo" @@ -115,7 +114,6 @@ func (wfa *workflowMongoAccessor) execute(workflow *Workflow) { } resource, _, err := accessor.Search(filters, "") if err == nil && len(resource) > 0 { - fmt.Println(workflow.Serialize(), resource[0].GetID()) accessor.UpdateOne(&workspace.Workspace{ Active: true, ResourceSet: resources.ResourceSet{