test, small log fix

This commit is contained in:
tobi 2025-01-18 17:38:37 +01:00
commit f81df9428a
2 changed files with 134 additions and 1 deletions

View file

@ -317,7 +317,7 @@ func (s *Subscriptions) ProcessDomainPermissionSubscription(
// Iterate through wantedPerms and
// create (or dry create) each one.
for _, wantedPerm := range wantedPerms {
l = l.WithField("domain", wantedPerm.GetDomain())
l := l.WithField("domain", wantedPerm.GetDomain())
created, err := s.processDomainPermission(
ctx, l,
wantedPerm,
@ -532,6 +532,7 @@ func (s *Subscriptions) processDomainPermission(
// TODO: update public/private comment
// from latest version if it's changed.
l.Debug("permission already exists and is managed by this subscription, skipping")
return false, nil
}
if err != nil && !errors.Is(err, db.ErrAlreadyExists) {