From 2850fb538a787362693bf28c3f94114515bb57ad Mon Sep 17 00:00:00 2001 From: mikeweiwei <466462983@qq.com> Date: Tue, 13 Nov 2018 12:14:27 +0800 Subject: [PATCH] fix logging calls --- internal/ingress/controller/nginx.go | 4 ++-- internal/ingress/status/status.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/ingress/controller/nginx.go b/internal/ingress/controller/nginx.go index 8392eab627..eff20a2d3f 100644 --- a/internal/ingress/controller/nginx.go +++ b/internal/ingress/controller/nginx.go @@ -251,7 +251,7 @@ type NGINXController struct { // Start starts a new NGINX master process running in the foreground. func (n *NGINXController) Start() { - glog.Infof("Starting NGINX Ingress controller") + glog.Info("Starting NGINX Ingress controller") n.store.Run(n.stopCh) @@ -336,7 +336,7 @@ func (n *NGINXController) Stop() error { return fmt.Errorf("shutdown already in progress") } - glog.Infof("Shutting down controller queues") + glog.Info("Shutting down controller queues") close(n.stopCh) go n.syncQueue.Shutdown() if n.syncStatus != nil { diff --git a/internal/ingress/status/status.go b/internal/ingress/status/status.go index 320ad7c0a1..f6f9ee36f2 100644 --- a/internal/ingress/status/status.go +++ b/internal/ingress/status/status.go @@ -136,7 +136,7 @@ func (s statusSync) Run() { }, stopCh) }, OnStoppedLeading: func() { - glog.V(2).Infof("I am not status update leader anymore") + glog.V(2).Info("I am not status update leader anymore") close(stopCh) // cancel the context @@ -197,7 +197,7 @@ func (s statusSync) Shutdown() { return } - glog.Infof("updating status of Ingress rules (remove)") + glog.Info("updating status of Ingress rules (remove)") addrs, err := s.runningAddresses() if err != nil {