diff --git a/tools/api-docs-generator/changelog/changelog.go b/tools/api-docs-generator/changelog/changelog.go index 74ec232fd646..ec49674bb440 100644 --- a/tools/api-docs-generator/changelog/changelog.go +++ b/tools/api-docs-generator/changelog/changelog.go @@ -61,7 +61,7 @@ func UpdateChangelog(ctx context.Context, cfg *config.Config, syncStateCfg confi // changes detected historicalChangelog, err := os.ReadFile(changeLogFile) // just pass the file name if err != nil { - fmt.Print(err) + return err } writer, err := os.Create(changeLogFile) @@ -121,7 +121,7 @@ func GenerateHistorical(ctx context.Context, cfg *config.Config, docsDirectory s for _, baseVersion := range gaVersions[1:] { nextURL := fmt.Sprintf("%s/%s", cfg.Fetcher.Source, nextVersion) baseURL := fmt.Sprintf("%s/%s", cfg.Fetcher.Source, baseVersion) - fmt.Printf("Comparing %s to %s\n", nextVersion, baseVersion) + groupedChanges, err := getChangeLog(nextURL, baseURL, loader) if err != nil { return err diff --git a/tools/api-docs-generator/cmd/historical-change-log/main.go b/tools/api-docs-generator/cmd/historical-change-log/main.go index 13bc68e1b9d9..7053d6070a10 100644 --- a/tools/api-docs-generator/cmd/historical-change-log/main.go +++ b/tools/api-docs-generator/cmd/historical-change-log/main.go @@ -2,7 +2,6 @@ package main import ( "context" - "fmt" "log" "os" "time" @@ -19,8 +18,6 @@ func main() { log.Panicf("usage: api-docs ") } - fmt.Println(os.Args) - cfg, err := config.Parse(os.Args[1]) if err != nil { log.Panic(err)