From db31a27cacc69e21e87c23c30c32363f53a19087 Mon Sep 17 00:00:00 2001 From: Thomas Langvann Date: Fri, 22 Jan 2021 10:00:38 +0100 Subject: [PATCH] Use stdout instead of stderr to return jobid --- src/cmd/run.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cmd/run.go b/src/cmd/run.go index 2711944..ea3d0eb 100644 --- a/src/cmd/run.go +++ b/src/cmd/run.go @@ -14,6 +14,7 @@ package cmd import ( + "fmt" "log" controllerV1 "github.com/nlnwa/veidemann-api/go/controller/v1" @@ -45,7 +46,7 @@ If seedId is not submitted then all the seeds wich are configured to use the sub log.Fatalf("could not run job: %v", err) } - println("Job Execution ID: ", r.GetJobExecutionId()) + fmt.Printf("Job Execution ID: %v\n", r.GetJobExecutionId()) case 2: // Two arguments (jobId and seedId) request := controllerV1.RunCrawlRequest{JobId: args[0], SeedId: args[1]} @@ -54,7 +55,7 @@ If seedId is not submitted then all the seeds wich are configured to use the sub log.Fatalf("could not run job: %v", err) } - println("Job Execution ID: ", r.GetJobExecutionId()) + fmt.Printf("Job Execution ID: %v\n", r.GetJobExecutionId()) } } else { cmd.Usage()