Skip to content

Commit

Permalink
Turn off logs below WARN level
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Kisler <admin@dkisler.com>
  • Loading branch information
kislerdm committed Nov 28, 2023
1 parent adfd186 commit bc2f554
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/bump-versions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

func main() {
logger := slog.New(slog.NewJSONHandler(os.Stdout, nil))
logger := slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{Level: slog.LevelWarn}))
logger.Info("Starting version bump process for modules and providers")

moduleDataDir := flag.String("module-data", "../modules", "Directory containing the module data")
Expand Down
2 changes: 2 additions & 0 deletions src/internal/github/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ func NewClient(ctx context.Context, log *slog.Logger, token string) Client {
retryClient.HTTPClient = httpClient
retryClient.RetryMax = 10

retryClient.Logger = log.WithGroup("retryClient")

return Client{
ctx: ctx,
log: log.WithGroup("github"),
Expand Down

0 comments on commit bc2f554

Please sign in to comment.