From 52c3847dc08d636311d7a87ab53c34bf507c7dae Mon Sep 17 00:00:00 2001 From: tobi Date: Tue, 7 Jan 2025 18:24:28 +0100 Subject: [PATCH] defer finished log --- internal/subscriptions/domainperms.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/subscriptions/domainperms.go b/internal/subscriptions/domainperms.go index 0994cdaa7..a37c9a29a 100644 --- a/internal/subscriptions/domainperms.go +++ b/internal/subscriptions/domainperms.go @@ -142,6 +142,7 @@ func (s *Subscriptions) ProcessDomainPermissionSubscriptions( permType gtsmodel.DomainPermissionType, ) { log.Info(ctx, "start") + defer log.Info(ctx, "finished") // Get permission subscriptions in priority order (highest -> lowest). permSubs, err := s.state.DB.GetDomainPermissionSubscriptionsByPriority(ctx, permType) @@ -194,8 +195,6 @@ func (s *Subscriptions) ProcessDomainPermissionSubscriptions( return } } - - log.Info(ctx, "finished") } // ProcessDomainPermissionSubscription processes one domain permission