diff --git a/internal/extinctions/extinctions.go b/internal/extinctions/extinctions.go index 3a6de75f..c982fa32 100644 --- a/internal/extinctions/extinctions.go +++ b/internal/extinctions/extinctions.go @@ -20,6 +20,7 @@ func CheckExtinctions(opts options.Options, builder *refs.ReferenceSummaryBuilde if err != nil { return err } + gha.Log("Matcher elements: %+v", matcher.Elements) gha.Debug("Searching for any remaining references to %d removed flags...", len(flagKeys)) gha.Debug("Searching dir %s", opts.Dir) diff --git a/search/search.go b/search/search.go index 0e6294a3..f61bac05 100644 --- a/search/search.go +++ b/search/search.go @@ -28,7 +28,6 @@ func GetMatcher(opts options.Options, flagKeys []string, diffContents laliases.F matcher := lsearch.Matcher{ Elements: elements, } - gha.Log("Matcher elements: %+v", matcher.Elements) return matcher, nil } diff --git a/vendor/github.com/launchdarkly/ld-find-code-refs/v2/search/search.go b/vendor/github.com/launchdarkly/ld-find-code-refs/v2/search/search.go index c63ec279..39789aa9 100644 --- a/vendor/github.com/launchdarkly/ld-find-code-refs/v2/search/search.go +++ b/vendor/github.com/launchdarkly/ld-find-code-refs/v2/search/search.go @@ -2,6 +2,7 @@ package search import ( "context" + "fmt" "sort" "strings" "sync" @@ -108,8 +109,11 @@ func (f file) toHunks(matcher Matcher) *ld.ReferenceHunksRep { if elementSearch.Dir != "" { matchDir := strings.HasPrefix(f.path, elementSearch.Dir) if !matchDir { + fmt.Printf("Path %s does not match dir %s\n", f.path, elementSearch.Dir) continue } + } else { + fmt.Printf("No dir for project element %s\n", elementSearch.ProjKey) } filteredMatchers = append(filteredMatchers, elementSearch) }