Skip to content

Commit 8d4572b

Browse files
author
Nutsa Bidzishvili - I
committed
update log amount of potential api urls found
1 parent 9ac1338 commit 8d4572b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

internal/watcher/instance/nginx_config_parser.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,8 @@ func (ncp *NginxConfigParser) apiCallback(ctx context.Context, parent,
462462
) *model.APIDetails {
463463
urls := ncp.urlsForLocationDirectiveAPIDetails(parent, current, apiType)
464464

465-
urlList := make([]string, 0, len(urls))
466-
for _, url := range urls {
467-
urlList = append(urlList, url.URL)
468-
}
469-
470465
if len(urls) > 0 {
471-
slog.DebugContext(ctx, fmt.Sprintf("Potential %d of %s urls", len(urlList), apiType), "urls", urls)
466+
slog.DebugContext(ctx, fmt.Sprintf("Potential %d of %s urls", len(urls), apiType), "urls", urls)
472467
}
473468

474469
for _, url := range urls {

0 commit comments

Comments
 (0)