1
0
mirror of https://github.com/containrrr/watchtower.git synced 2024-12-12 09:04:17 +02:00

Update email.go

This commit is contained in:
Max H 2019-10-09 09:25:24 +02:00 committed by GitHub
parent 220dc5add4
commit 505a5ec715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,9 @@ func newEmailNotifier(c *cobra.Command, acceptedLogLevels []log.Level) t.Notifie
}
func (e *emailTypeNotifier) buildMessage(entries []*log.Entry) []byte {
// If variable SubjectTag is empty define emailSubject as "Watchtower updates".
// If variable SubjectTag is set define emailSubject as "$SubjectTag Watchtower updates"
// For example: SubjectTag=[Server Munich] -> "[Server Munich] Watchtower updates ..."
if SubjectTag == nil {
emailSubject := "Watchtower updates"
} else {