diff --git a/pkg/notifier/telegramnotifier/logrus_look.go b/pkg/notifier/telegramnotifier/logrus_look.go index 8cfa229a4..dfe92479c 100644 --- a/pkg/notifier/telegramnotifier/logrus_look.go +++ b/pkg/notifier/telegramnotifier/logrus_look.go @@ -34,7 +34,7 @@ func (t *LogHook) Fire(e *logrus.Entry) error { } var message = fmt.Sprintf("[%s] %s", e.Level.String(), e.Message) - if errData, ok := e.Data[logrus.ErrorKey]; ok { + if errData, ok := e.Data[logrus.ErrorKey]; ok && errData != nil { if err, isErr := errData.(error); isErr { message += " Error: " + err.Error() }