From a79995e7c09397484d9613d6ff7a435c62a00a0b Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 17 Nov 2024 20:50:26 +0800 Subject: [PATCH] :loud_sound: Add log in new event function --- pkg/internal/services/events.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/internal/services/events.go b/pkg/internal/services/events.go index dfe1e71..09b0c69 100644 --- a/pkg/internal/services/events.go +++ b/pkg/internal/services/events.go @@ -79,6 +79,7 @@ func NewEvent(event models.Event) (models.Event, error) { ChannelID: event.ChannelID, }).Find(&members).Error; err != nil { // Couldn't get channel members, skip notifying + log.Warn().Err(err).Msg("Failed to fetch members, the notifying of new event was terminated...") return event, nil }