Skip to content

Commit

Permalink
Log instead of print in pkg packages
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Lingerfelt <kl@buoyant.io>
  • Loading branch information
klingerf committed Jun 19, 2018
1 parent e2de8a9 commit 8f23056
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/k8s/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"net"
"net/url"

log "github.com/sirupsen/logrus"
"k8s.io/client-go/rest"
"k8s.io/kubernetes/pkg/kubectl/proxy"
// Load all the auth plugins for the cloud providers.
Expand Down Expand Up @@ -83,7 +84,7 @@ func proxyListen(server *proxy.Server, proxyPort int) (net.Listener, error) {
}

func proxyServe(server *proxy.Server, listener net.Listener) error {
fmt.Printf("Starting to serve on %s\n", listener.Addr().String())
log.Infof("Starting to serve on %s", listener.Addr().String())

// blocks until process is killed
err := server.ServeOnListener(listener)
Expand Down

0 comments on commit 8f23056

Please sign in to comment.