From 28930c034f1bfa7d15baca2280061db0437fc2ff Mon Sep 17 00:00:00 2001 From: Cheng Xing Date: Fri, 4 Dec 2020 14:46:50 -0800 Subject: [PATCH] Add server listening log --- cmd/csi-attacher/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/csi-attacher/main.go b/cmd/csi-attacher/main.go index 7e1d182472..e12c9cbf0f 100644 --- a/cmd/csi-attacher/main.go +++ b/cmd/csi-attacher/main.go @@ -152,9 +152,10 @@ func main() { metricsManager.RegisterToServer(mux, *metricsPath) metricsManager.SetDriverName(csiAttacher) go func() { + klog.Infof("ServeMux listening at %q", addr) err := http.ListenAndServe(addr, mux) if err != nil { - klog.Fatalf("Failed to start Prometheus metrics endpoint on specified address (%q) and path (%q): %s", *metricsAddress, *metricsPath, err) + klog.Fatalf("Failed to start HTTP server at specified address (%q) and metrics path (%q): %s", addr, *metricsPath, err) } }() }