Skip to content

Commit

Permalink
fix logger format (#349)
Browse files Browse the repository at this point in the history
Signed-off-by: Manabu McCloskey <[email protected]>
  • Loading branch information
nabuskey authored Jul 31, 2024
1 parent af755fd commit b39daa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controllers/gitrepository/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func reconcileLocalRepoContent(ctx context.Context, repo *v1alpha1.GitRepository
return fmt.Errorf("getting remote url %w", err)
}

logger.V(1).Info("pushing to remote url %s", remoteUrl)
logger.V(1).Info("pushing to remote url", "remoteUrl", remoteUrl)
err = pushToRemote(ctx, tgtRepository, creds)
if err != nil {
return fmt.Errorf("pushing to git: %w", err)
Expand Down Expand Up @@ -337,7 +337,7 @@ func reconcileRemoteRepoContent(ctx context.Context, repo *v1alpha1.GitRepositor
return fmt.Errorf("getting remote url %w", err)
}

logger.V(1).Info("pushing to remote url %s", remoteUrl)
logger.V(1).Info("pushing to remote url", "remoteUrl", remoteUrl)
err = pushToRemote(ctx, tgtRepository, creds)
if err != nil {
return fmt.Errorf("pushing to git: %w", err)
Expand Down

0 comments on commit b39daa7

Please sign in to comment.