From dc7b58ffda2ee68c528d797105fffc23d808e981 Mon Sep 17 00:00:00 2001 From: Frikky Date: Sun, 19 May 2024 13:48:28 +0200 Subject: [PATCH] Removed verbosity for user input in swarm --- shared.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/shared.go b/shared.go index f681b0b..ebd95fc 100755 --- a/shared.go +++ b/shared.go @@ -11883,8 +11883,7 @@ func ParsedExecutionResult(ctx context.Context, workflowExecution WorkflowExecut if project.Environment == "worker" { if os.Getenv("SHUFFLE_SWARM_CONFIG") == "run" || os.Getenv("SHUFFLE_SWARM_CONFIG") == "swarm" { - log.Printf("\n\n\n[DEBUG] MODIFYING workflow based on User Input as we are in swarm\n\n\n") - + //log.Printf("\n\n\n[DEBUG] MODIFYING workflow based on User Input as we are in swarm\n\n\n") workflowExecution.Status = "WAITING" workflowExecution.Results = append(workflowExecution.Results, actionResult) setWorkflow = true @@ -17153,7 +17152,7 @@ func PrepareWorkflowExecution(ctx context.Context, workflow Workflow, request *h } result.CompletedAt = int64(time.Now().Unix()) * 1000 - log.Printf("\n\n[INFO][%s] Setting result to %s\n\n", oldExecution.ExecutionId, result.Action.Label) + log.Printf("[INFO][%s] Setting result to %s", oldExecution.ExecutionId, result.Action.Label) sendSelfRequest := false if answer[0] == "false" { @@ -17213,7 +17212,6 @@ func PrepareWorkflowExecution(ctx context.Context, workflow Workflow, request *h } } - log.Printf("\n\n\n[DEBUG][%s] SelfReq: %t, Env: %s\n\n\n", result.ExecutionId, sendSelfRequest, result.Action.Environment) if sendSelfRequest || strings.ToLower(result.Action.Environment) == "cloud" { log.Printf("[DEBUG][%s] Sending User Input result to self because we are on cloud env/action is skipped", result.ExecutionId)