From 03311005981bea318eae89de88ac9367619845bc Mon Sep 17 00:00:00 2001 From: Bianca Lisle Date: Thu, 24 Oct 2024 16:53:00 +0100 Subject: [PATCH] Add logs --- tools/cli/internal/breakingchanges/exemptions.go | 2 ++ tools/cli/internal/changelog/outputfilter/hide.go | 1 + 2 files changed, 3 insertions(+) diff --git a/tools/cli/internal/breakingchanges/exemptions.go b/tools/cli/internal/breakingchanges/exemptions.go index c5ab897e4..bad9728df 100644 --- a/tools/cli/internal/breakingchanges/exemptions.go +++ b/tools/cli/internal/breakingchanges/exemptions.go @@ -89,6 +89,8 @@ func GetValidExemptionsList(exemptionsPath string, ignoreExpiration bool, fs afe validExemptions = append(validExemptions, exemption) } } + + log.Printf("Found %d valid exemptions", len(validExemptions)) return validExemptions, nil } diff --git a/tools/cli/internal/changelog/outputfilter/hide.go b/tools/cli/internal/changelog/outputfilter/hide.go index 0a86e5584..840c54eb2 100644 --- a/tools/cli/internal/changelog/outputfilter/hide.go +++ b/tools/cli/internal/changelog/outputfilter/hide.go @@ -56,6 +56,7 @@ func hideByIDs(entries []*OasDiffEntry, ids []string) ([]*OasDiffEntry, error) { // hideByExemptions hides entries based on the exemptions func hideByExemptions(entries []*OasDiffEntry, exemptions []breakingchanges.Exemption) ([]*OasDiffEntry, error) { exemptionsMarkedHidden := breakingchanges.GetHiddenExemptions(exemptions) + log.Printf("Found %d exemptions marked hidden from the changelog.", len(exemptionsMarkedHidden)) hiddenEntries := 0 for _, entry := range entries { if entry.HideFromChangelog {