Skip to content

Commit

Permalink
fix: logging issues
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
  • Loading branch information
jasondellaluce authored and FedeDP committed Feb 9, 2023
1 parent ac65875 commit 5aa3abd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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),
Expand All @@ -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
}

0 comments on commit 5aa3abd

Please sign in to comment.