From 68916129ae95426d49182329e415c9022406f213 Mon Sep 17 00:00:00 2001 From: ShotaKitazawa Date: Sun, 21 Jan 2024 17:50:41 +0900 Subject: [PATCH] fix loglevel --- server/infrastructure/kubernetes/client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/infrastructure/kubernetes/client.go b/server/infrastructure/kubernetes/client.go index 0bfc93d..1efb230 100644 --- a/server/infrastructure/kubernetes/client.go +++ b/server/infrastructure/kubernetes/client.go @@ -158,13 +158,13 @@ func (c *Client) ListIngress(ctx context.Context) (models.IngressInfoList, error rvPath, err := jsonpointer.Get(obj, fmt.Sprintf("/rules/%d/http/paths/%d/path", ruleIdx, pathIdx)) if err != nil { - logger.Warn(fmt.Sprintf( - `Ingress.spec.rules[%d].http.paths[%d].path is empty: use "/" as path`, + logger.Debug(fmt.Sprintf( + "Ingress.spec.rules[%d].http.paths[%d].path is empty: use / as path", ruleIdx, pathIdx)) tmpIngressInfo.Path = "/" } else if path, ok := rvPath.(string); !ok { - logger.Warn(fmt.Sprintf( - `Ingress.spec.rules[%d].http.paths[%d].path is empty: use "/" as path`, + logger.Debug(fmt.Sprintf( + "Ingress.spec.rules[%d].http.paths[%d].path is empty: use / as path", ruleIdx, pathIdx)) tmpIngressInfo.Path = "/" } else {