From 218714683bb71d39dc456d26c049f85906e4e85d Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 19 Jul 2024 09:43:18 +0200 Subject: [PATCH] validator err --- models/resources/workflow/workflow_mongo_accessor.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/models/resources/workflow/workflow_mongo_accessor.go b/models/resources/workflow/workflow_mongo_accessor.go index 51bd318..aef9082 100644 --- a/models/resources/workflow/workflow_mongo_accessor.go +++ b/models/resources/workflow/workflow_mongo_accessor.go @@ -1,8 +1,6 @@ package oclib import ( - "fmt" - "cloud.o-forge.io/core/oc-lib/dbs/mongo" "cloud.o-forge.io/core/oc-lib/models/utils" ) @@ -21,7 +19,7 @@ func (wfa *WorkflowMongoAccessor) UpdateOne(set map[string]interface{}, id strin func (wfa *WorkflowMongoAccessor) StoreOne(data utils.DBObject) (utils.DBObject, error) { err := utils.Validate.Struct(data) - fmt.Println(err) + wfa.Logger.Error().Msg("Could not store " + data.GetName() + " to db. Error: " + err.Error()) if err != nil { return nil, err }