From 194abc817de6786c9b4aae565d02451e39d917a6 Mon Sep 17 00:00:00 2001 From: Vivek Revankar Date: Wed, 30 Oct 2024 18:42:23 -0700 Subject: [PATCH] address comment --- metrics/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics/metrics.go b/metrics/metrics.go index 84fcd03..9df9d91 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -93,7 +93,7 @@ func InitPrometheus(prometheusHost, prometheusPort, prometheusEntry string) { if strings.HasPrefix(prometheusHost, "unix:") { socketPath := prometheusHost[5:] glog.Infof("Starting Prometheus on Unix socket %v, entry point is /%v", socketPath, prometheusEntry) - os.Remove(socketPath) // allow failure + _ := os.Remove(socketPath) // allow failure unixListener, err := net.Listen("unix", socketPath) if err != nil { glog.Errorf("Error starting Prometheus on socket %v: %v", socketPath, err)