Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
motoki317 committed Oct 16, 2023
1 parent 6636de7 commit 7fc9b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/usecase/gitea-integration/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (i *Integration) syncApplication(ctx context.Context, app *domain.Applicati
allOwnersAdded := lo.EveryBy(giteaOwnerIDs, func(ownerID string) bool { return slices.Contains(app.OwnerIDs, ownerID) })
if !allOwnersAdded {
newOwners := ds.UniqMergeSlice(app.OwnerIDs, giteaOwnerIDs)
log.Infof("Syncing application %v (id: %v) owners, %v users -> %v users", app.Name, app.ID, len(app.OwnerIDs), newOwners)
log.Infof("Syncing application %v (id: %v) owners, %v users -> %v users", app.Name, app.ID, len(app.OwnerIDs), len(newOwners))
err := i.appRepo.UpdateApplication(ctx, app.ID, &domain.UpdateApplicationArgs{OwnerIDs: optional.From(newOwners)})
if err != nil {
return err
Expand Down

0 comments on commit 7fc9b14

Please sign in to comment.