From 1842076d02b2e25935d5eaa9c5ed868e702ae82f Mon Sep 17 00:00:00 2001 From: Marian Steinbach Date: Wed, 4 Oct 2023 13:04:35 +0200 Subject: [PATCH] Fix inconsistent logging in `devctl repo setup renovate` (#643) --- CHANGELOG.md | 4 ++++ pkg/githubclient/renovate.go | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ea99bf9..b5a8798b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Fixed inconsistent logging in `devctl repo setup renovate`. + ## [6.12.0] - 2023-09-28 ### Added diff --git a/pkg/githubclient/renovate.go b/pkg/githubclient/renovate.go index 0473d6df..e7771c71 100644 --- a/pkg/githubclient/renovate.go +++ b/pkg/githubclient/renovate.go @@ -3,7 +3,6 @@ package githubclient import ( "context" "fmt" - "log" "net/http" "github.com/google/go-github/v55/github" @@ -34,7 +33,7 @@ func (c *Client) AddRepoToRenovatePermissions(ctx context.Context, org string, r return err } - log.Printf("response status: %q", resp.Status) + c.logger.Printf("response status: %q", resp.Status) return nil }