mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 06:10:22 +00:00
util: use FatalLog() in util/httpserver.go
Hide the use of klog by using our own FatalLog() function. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
ab033f85df
commit
61924adf57
@ -7,7 +7,6 @@ import (
|
||||
"strconv"
|
||||
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
klog "k8s.io/klog/v2"
|
||||
)
|
||||
|
||||
// ValidateURL validates the url.
|
||||
@ -22,6 +21,6 @@ func StartMetricsServer(c *Config) {
|
||||
http.Handle(c.MetricsPath, promhttp.Handler())
|
||||
err := http.ListenAndServe(addr, nil)
|
||||
if err != nil {
|
||||
klog.Fatalln(err)
|
||||
FatalLog("failed to listen on address %v: %s", addr, err)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user