Skip to content

Commit

Permalink
add scenario ID in log
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyBobsin committed Jan 9, 2023
1 parent ec93020 commit 00dd9a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func publishRawSamples() (string, error) {
runId := testRun.ID
runToken := testRun.WriteToken

InfoLog.Println("Created a new test run with ID", runId)
InfoLog.Println("Created a new test run with ID", runId, "under scenario", testRun.ScenarioId)

if _, err := internal.CreateTestSamples(
hostName(environment),
Expand Down Expand Up @@ -140,7 +140,7 @@ func publishV2() (string, error) {
runId := testRun.ID
runToken := testRun.WriteToken

InfoLog.Println("Created a new test run with ID", runId)
InfoLog.Println("Created a new test run with ID", runId, "under scenario", testRun.ScenarioId)

if _, err := internal.CreateTestChartMetrics(
hostName(environment),
Expand Down
1 change: 1 addition & 0 deletions internal/api_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type CreateTestRunRequest struct {

type TestRun struct {
ID string `json:"id"`
ScenarioId string `json:"scenarioId"`
ScenarioName string `json:"scenarioName"`
Environment string `json:"environment"`
WriteToken string `json:"writeToken"`
Expand Down

0 comments on commit 00dd9a1

Please sign in to comment.