Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
noctillion committed Oct 10, 2023
1 parent 3a89736 commit b1d3180
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/api/mvc/data-types/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ func GetDataTypes(c echo.Context) error {
// sampleId fetched from the variants overview
resultsMap, err := variantService.GetVariantsOverview(es, cfg)

fmt.Printf("resultsMapDDD: %v\n", resultsMap)

if err != nil {
// Could not talk to Elasticsearch, return an error
return c.JSON(http.StatusInternalServerError, map[string]interface{}{
Expand Down
4 changes: 0 additions & 4 deletions src/api/mvc/variants/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,6 @@ func GetLastCreatedVariantForDataset(c echo.Context) string {

g.Go(func() error {
timestamp, timestampError := esRepo.GetMostRecentVariantTimestamp(cfg, es, dataset.String())
fmt.Printf("timestamp: %v\n", timestamp)
fmt.Printf("timestampError: %v\n", timestampError)
fmt.Printf("timestampError == nil: %v\n", es)
fmt.Printf("timestampError == nil: %v\n", dataset.String())
if timestampError != nil {
fmt.Printf("Failed to fetch the most recent 'created' timestamp for dataset %s. Error: %v\n", dataset, timestampError)
return timestampError
Expand Down
1 change: 0 additions & 1 deletion src/api/repositories/elasticsearch/variants.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,6 @@ func CountDocumentsContainerVariantOrSampleIdInPositionRange(cfg *models.Config,

func GetVariantsBucketsByKeyword(cfg *models.Config, es *elasticsearch.Client, keyword string) (map[string]interface{}, error) {
// begin building the request body.
fmt.Printf("Query StartKEYWORD: %s\n", keyword)
var buf bytes.Buffer
aggMap := map[string]interface{}{
"size": "0",
Expand Down
1 change: 0 additions & 1 deletion src/api/services/variants/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func GetVariantsOverview(es *elasticsearch.Client, cfg *models.Config) (map[stri
defer _wg.Done()

results, bucketsError := esRepo.GetVariantsBucketsByKeyword(cfg, es, keyword)
fmt.Printf("resultsCFCFCF: %v\n", results)
if bucketsError != nil {
resultsMux.Lock()
defer resultsMux.Unlock()
Expand Down

0 comments on commit b1d3180

Please sign in to comment.