diff --git a/notifications/email.go b/notifications/email.go index 9fd8774..075aae4 100644 --- a/notifications/email.go +++ b/notifications/email.go @@ -87,10 +87,10 @@ func (e *emailTypeNotifier) StartNotification() { } func (e *emailTypeNotifier) SendNotification() { - if e.entries != nil { + if e.entries != nil && len(e.entries) != 0 { e.sendEntries(e.entries) - e.entries = nil } + e.entries = nil } func (e *emailTypeNotifier) Levels() []log.Level {