mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2025-01-10 22:45:23 +00:00
Use log.fatalf
This commit is contained in:
parent
f7dfad9bd4
commit
c8a749f7c5
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -45,7 +45,7 @@ func udpAddrFromString(addr string) *net.UDPAddr {
|
|||
|
||||
port, err := strconv.Atoi(portStr)
|
||||
if err != nil || port < 0 || port > 65535 {
|
||||
log.Fatal("Bad port %s: %s", portStr, err)
|
||||
log.Fatalf("Bad port %s: %s", portStr, err)
|
||||
}
|
||||
|
||||
return &net.UDPAddr{
|
||||
|
|
Loading…
Reference in a new issue