From 4a71111d4c7bc1f46240f710c548ecdb61891773 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 23 Oct 2018 18:21:16 +0300 Subject: [PATCH] Fix usages of %q formatting for numbers (%d) This caused logs like "Adjusting ServerNameHashBucketSize variable to '@'" --- internal/ingress/controller/nginx.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ingress/controller/nginx.go b/internal/ingress/controller/nginx.go index a5480cbc40..9c5b398be8 100644 --- a/internal/ingress/controller/nginx.go +++ b/internal/ingress/controller/nginx.go @@ -504,12 +504,12 @@ func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) error { } if cfg.ServerNameHashBucketSize == 0 { nameHashBucketSize := nginxHashBucketSize(longestName) - glog.V(3).Infof("Adjusting ServerNameHashBucketSize variable to %q", nameHashBucketSize) + glog.V(3).Infof("Adjusting ServerNameHashBucketSize variable to %d", nameHashBucketSize) cfg.ServerNameHashBucketSize = nameHashBucketSize } serverNameHashMaxSize := nextPowerOf2(serverNameBytes) if cfg.ServerNameHashMaxSize < serverNameHashMaxSize { - glog.V(3).Infof("Adjusting ServerNameHashMaxSize variable to %q", serverNameHashMaxSize) + glog.V(3).Infof("Adjusting ServerNameHashMaxSize variable to %d", serverNameHashMaxSize) cfg.ServerNameHashMaxSize = serverNameHashMaxSize }