From 8bf45bdefe17d8f7077e20ea43846a255d2b753c Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 8 Dec 2024 12:04:40 +0800 Subject: [PATCH] :loud_sound: Add verbose logging to new event notifying --- pkg/internal/services/events.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/internal/services/events.go b/pkg/internal/services/events.go index a02be78..f7176b2 100644 --- a/pkg/internal/services/events.go +++ b/pkg/internal/services/events.go @@ -83,7 +83,11 @@ func NewEvent(event models.Event) (models.Event, error) { return event, nil } - event, _ = GetEvent(event.Channel, event.ID) + event, err := GetEvent(event.Channel, event.ID) + if err != nil { + log.Error().Err(err).Msg("Failed to fetch event, the notifying of new event was terminated...") + return event, err + } idxList := lo.Map(members, func(item models.ChannelMember, index int) uint64 { return uint64(item.AccountID) })