From 5aa3abd411417ae0a757c689236611bf517bc4fe Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Tue, 7 Feb 2023 16:57:08 +0000 Subject: [PATCH] fix: logging issues Signed-off-by: Jason Dellaluce --- pkg/config/config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 3c09ad3..b0b26e5 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -165,10 +165,10 @@ func (g *GitHubActionsConfig) Sync( } func (g *GithubConfig) Sync(c *github.Client, p poiana.SecretsProvider, dryRun bool) error { - logrus.Debugln("starting the synching loop") + logrus.Debugf("starting the synching loop") ctx := context.Background() for orgName, org := range g.Orgs { - logrus.Debugln("synching org %s", orgName) + logrus.Debugf("synching org %s", orgName) err := org.Actions.Sync( ctx, p, poiana.NewClientOrgVariableService(c, orgName), @@ -180,7 +180,7 @@ func (g *GithubConfig) Sync(c *github.Client, p poiana.SecretsProvider, dryRun b // note: we want to ignore the repos that are not in the config for repoName, repo := range org.Repos { - logrus.Debugln("synching repo %s/%s", orgName, repoName) + logrus.Debugf("synching repo %s/%s", orgName, repoName) err := repo.Actions.Sync( ctx, p, poiana.NewClientRepoVariableService(c, orgName, repoName), @@ -191,6 +191,6 @@ func (g *GithubConfig) Sync(c *github.Client, p poiana.SecretsProvider, dryRun b } } } - logrus.Debugln("ending the synching loop") + logrus.Debugf("ending the synching loop") return nil }