From 9be096c9b7c73b3f505f66b1b8922c496b3f7f6c Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 24 Nov 2024 23:18:43 +0800 Subject: [PATCH] :loud_sound: Verbose pushing notify logs --- pkg/internal/provider/caller.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/internal/provider/caller.go b/pkg/internal/provider/caller.go index 903e999..db3a385 100644 --- a/pkg/internal/provider/caller.go +++ b/pkg/internal/provider/caller.go @@ -51,6 +51,13 @@ func PushNotification(in pushkit.NotificationPushRequest) error { func PushNotificationBatch(in pushkit.NotificationPushBatchRequest) { requestId := uuid.NewString() + log.Debug(). + Any("tk", in.Tokens). + Any("providers", in.Providers). + Str("topic", in.Notification.Topic). + Str("request_id", requestId). + Msg("Pushing notification in batch...") + var wg sync.WaitGroup for idx, key := range in.Providers { prov, ok := notifyProviders[key]