Skip to content

Commit

Permalink
Merge pull request #9 from ComposableFi/v0.1.3
Browse files Browse the repository at this point in the history
adding debug to see logs
  • Loading branch information
Ciejo authored Jun 18, 2024
2 parents b86fbdc + 433597b commit 1ad408c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ func (c *SuccintCollector) Collect(ch chan<- prometheus.Metric) {

var proofs []SuccintProof
if err := json.Unmarshal(body, &proofs); err != nil {
level.Error(c.logger).Log("msg", "Error parsing JSON", "err", err)
return
log.Fatalf("Error parsing JSON: %v", err)
}

// Print result to verify
fmt.Printf("%+v\n", proofs)

c.processMetrics(proofs, ch)

level.Debug(c.logger).Log("msg", "Stopped metrics collection")
Expand Down

0 comments on commit 1ad408c

Please sign in to comment.