Skip to content

Commit

Permalink
Use stdout instead of stderr to return jobid
Browse files Browse the repository at this point in the history
  • Loading branch information
Langvann committed Jan 22, 2021
1 parent e18c3a2 commit db31a27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package cmd

import (
"fmt"
"log"

controllerV1 "github.com/nlnwa/veidemann-api/go/controller/v1"
Expand Down Expand Up @@ -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]}
Expand All @@ -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()
Expand Down

0 comments on commit db31a27

Please sign in to comment.