Skip to content

Commit

Permalink
fix: trim logs
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliu-petrescu committed May 29, 2024
1 parent 6e7cc34 commit 696ad16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tools/api-docs-generator/changelog/changelog.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions tools/api-docs-generator/cmd/historical-change-log/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"context"
"fmt"
"log"
"os"
"time"
Expand All @@ -19,8 +18,6 @@ func main() {
log.Panicf("usage: api-docs <config-file> <docs-dir>")
}

fmt.Println(os.Args)

cfg, err := config.Parse(os.Args[1])
if err != nil {
log.Panic(err)
Expand Down

0 comments on commit 696ad16

Please sign in to comment.