appease linter, remove unnecessary log line

Signed-off-by: Rafael da Fonseca <rafael.fonseca@wildlifestudios.com>
This commit is contained in:
Rafael da Fonseca 2024-01-19 21:57:11 +00:00
parent bc96769c91
commit 1e20a00589

View file

@ -674,7 +674,6 @@ Error: %v
func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) error {
concurrentlyReloadWorkers := n.store.GetBackendConfiguration().ConcurrentlyReloadWorkers
if !concurrentlyReloadWorkers && n.workersReloading {
klog.InfoS("worker reload already in progress, requeuing reload")
return errors.New("worker reload already in progress, requeuing reload")
}
@ -763,7 +762,7 @@ func (n *NGINXController) awaitWorkersReload() {
time.Sleep(time.Second)
o, err := exec.Command("/bin/sh", "-c", "pgrep worker | wc -l").Output()
if err != nil {
klog.ErrorS(err, string(numWorkers))
klog.ErrorS(err, numWorkers)
return
}
// cleanup any non-printable chars from shell output