Skip to content

Commit

Permalink
chore: improve parameter debug msg
Browse files Browse the repository at this point in the history
  • Loading branch information
wbollock committed Oct 11, 2023
1 parent eff9591 commit f476be6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/collector/icmp_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ func PingHandler(w http.ResponseWriter, r *http.Request) {
registry := prometheus.NewRegistry()
registry.MustRegister(pingSuccessGauge, probeDurationGauge, minGauge, maxGauge, avgGauge, stddevGauge, lossGauge)

log.Debug("Request received with parameters ", p)
log.Debugf("Request received with parameters: target=%v, count=%v, size=%v, interval=%v, timeout=%v, ttl=%v, packet=%v",
p.target, p.count, p.size, p.interval, p.timeout, p.ttl, p.packet)

pinger := probing.New(p.target)

Expand Down

0 comments on commit f476be6

Please sign in to comment.