From f946ff0aab09d9a3d55fee54b4493c144aa23a8f Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Thu, 8 Aug 2013 12:07:58 -0700 Subject: [PATCH] fix(etcd): log same port argument --- etcd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etcd.go b/etcd.go index 605db53a1..28a3ad070 100644 --- a/etcd.go +++ b/etcd.go @@ -444,11 +444,11 @@ func startClientTransport(port int, st int) { switch st { case HTTP: - fmt.Printf("etcd [%s] listen on http port %v\n", hostname, clientPort) + fmt.Printf("etcd [%s] listen on http port %v\n", hostname, port) fatal(http.ListenAndServe(fmt.Sprintf(":%d", port), nil)) case HTTPS: - fmt.Printf("etcd [%s] listen on https port %v\n", hostname, clientPort) + fmt.Printf("etcd [%s] listen on https port %v\n", hostname, port) http.ListenAndServeTLS(fmt.Sprintf(":%d", port), clientCertFile, clientKeyFile, nil) case HTTPSANDVERIFY: @@ -460,7 +460,7 @@ func startClientTransport(port int, st int) { }, Addr: fmt.Sprintf(":%d", port), } - fmt.Printf("etcd [%s] listen on https port %v\n", hostname, clientPort) + fmt.Printf("etcd [%s] listen on https port %v\n", hostname, port) fatal(server.ListenAndServeTLS(clientCertFile, clientKeyFile)) } }