Skip to content

Commit 2a6fd1e

Browse files
committed
only log error when errnotsignular
1 parent afaded3 commit 2a6fd1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/httpserve/handlers/webhook_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ func upsertOrgModule(ctx context.Context, orgSub *ent.OrgSubscription, price *en
158158
err := tx.TrustCenter.Create().SetOwnerID(orgSub.OwnerID).
159159
Exec(newCtx)
160160
if err != nil {
161-
logx.FromContext(ctx).Error().Err(err).Msg("error creating trust center")
162161
if !errors.Is(err, hooks.ErrNotSingularTrustCenter) {
162+
logx.FromContext(ctx).Error().Err(err).Msg("error creating trust center")
163163
return nil, err
164164
}
165165
}

0 commit comments

Comments
 (0)