@@ -511,13 +511,6 @@ func (a *analysisOrchestrator) RunTest(ctx context.Context, orgId string, b bund
511
511
testApi .WithReporting (reportingConfig .Report ),
512
512
)
513
513
514
- fmt .Println ("Creating test" )
515
- bodyBytes , err := json .MarshalIndent (body , "" , " " )
516
- if err != nil {
517
- return nil , err
518
- }
519
- fmt .Println (string (bodyBytes ))
520
-
521
514
// create test
522
515
resp , err := client .CreateTestWithApplicationVndAPIPlusJSONBody (ctx , orgUuid , & params , * body )
523
516
if err != nil {
@@ -562,12 +555,6 @@ func (a *analysisOrchestrator) RunTestRemote(ctx context.Context, orgId string,
562
555
params := testApi.CreateTestParams {Version : testApi .ApiVersion }
563
556
projectId := cfg .ProjectId
564
557
commitId := cfg .CommitId
565
- fmt .Println ("Creating test" )
566
- prettyBytes , err := json .MarshalIndent (cfg , "" , " " )
567
- if err != nil {
568
- return nil , err
569
- }
570
- fmt .Println (string (prettyBytes ))
571
558
572
559
if projectId == nil || commitId == nil {
573
560
return nil , errors .New ("projectId and commitId are required" )
@@ -580,13 +567,6 @@ func (a *analysisOrchestrator) RunTestRemote(ctx context.Context, orgId string,
580
567
testApi .WithProjectId (* projectId ),
581
568
582
569
)
583
- fmt .Println ("Creating test" )
584
- prettyBytes , err = json .MarshalIndent (body , "" , " " )
585
- if err != nil {
586
- return nil , err
587
- }
588
- fmt .Println (string (prettyBytes ))
589
-
590
570
// create test
591
571
bodyBytes , err := json .Marshal (body )
592
572
if err != nil {
@@ -613,11 +593,6 @@ func (a *analysisOrchestrator) RunTestRemote(ctx context.Context, orgId string,
613
593
case http .StatusCreated :
614
594
// poll results
615
595
result , pollErr := a .pollTestForFindings (ctx , client , orgUuid , parsedResponse .ApplicationvndApiJSON200 .Data .Id )
616
- formattedResult , err := json .MarshalIndent (parsedResponse .ApplicationvndApiJSON200 , "" , " " )
617
- if err != nil {
618
- return nil , err
619
- }
620
- fmt .Println (string (formattedResult ))
621
596
tracker .End ("Analysis complete." )
622
597
return result , pollErr
623
598
default :
0 commit comments