Skip to content

Commit

Permalink
fix loglevel
Browse files Browse the repository at this point in the history
  • Loading branch information
ShotaKitazawa committed Jan 21, 2024
1 parent 19e03dc commit 6891612
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/infrastructure/kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6891612

Please sign in to comment.