Skip to content

Commit

Permalink
Remove useless fmt.Printf
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSuisse committed Oct 31, 2020
1 parent 2369005 commit 2ecdedf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
Expand Down Expand Up @@ -65,7 +64,6 @@ func sensorAction(c *gin.Context) {
return
}

fmt.Printf("%v%v\n", sensorName, actionParameters)
labels := prometheus.Labels{SensorName: sensorName}
temperatureSensor.With(labels).Set(actionParameters.Temperature)
humiditySensor.With(labels).Set(float64(actionParameters.Humidity))
Expand Down

0 comments on commit 2ecdedf

Please sign in to comment.