🔊 Add log in new event function

This commit is contained in:
LittleSheep 2024-11-17 20:50:26 +08:00
parent fce42e4557
commit a79995e7c0

View File

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