🔊 Verbose pushing notify logs

This commit is contained in:
LittleSheep 2024-11-24 23:18:43 +08:00
parent 02060182d0
commit 9be096c9b7

View File

@ -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]