Skip to content

Commit

Permalink
remove printf for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Josep Manel Andres Moscardo committed Feb 22, 2022
1 parent 9e65fc2 commit db5d3bd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (e *Exporter) collect(ch chan<- prometheus.Metric) error {
ch <- prometheus.MustNewConstMetric(e.up, prometheus.GaugeValue, 1)

data, err := ioutil.ReadAll(resp.Body)
fmt.Printf("%s", data)

resp.Body.Close()
if resp.StatusCode != 200 {
if err != nil {
Expand All @@ -207,9 +207,7 @@ func (e *Exporter) collect(ch chan<- prometheus.Metric) error {
return fmt.Errorf("not a valid json: %v", err)
return err
}
fmt.Printf("\n")
fmt.Printf("\n")
fmt.Printf("%+v\n", onlyoffice)

collectStat(ch, e.editConnectionsLastHour, float64(onlyoffice.ConnectionsStat.Hour.Edit.Min), "min")
collectStat(ch, e.editConnectionsLastHour, float64(onlyoffice.ConnectionsStat.Hour.Edit.Avr), "avr")
collectStat(ch, e.editConnectionsLastHour, float64(onlyoffice.ConnectionsStat.Hour.Edit.Max), "max")
Expand Down

0 comments on commit db5d3bd

Please sign in to comment.