address comment

This commit is contained in:
Vivek Revankar 2024-10-30 18:42:23 -07:00
parent 7e4883db8e
commit 194abc817d

View file

@ -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)