|
|
|
@ -64,10 +64,12 @@ func newEmailNotifier(c *cobra.Command, acceptedLogLevels []log.Level) t.Notifie
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (e *emailTypeNotifier) buildMessage(entries []*log.Entry) []byte {
|
|
|
|
|
if SubjectTag == "" {
|
|
|
|
|
emailSubject := "Watchtower updates"
|
|
|
|
|
var emailSubject string
|
|
|
|
|
|
|
|
|
|
if e.SubjectTag == "" {
|
|
|
|
|
emailSubject = "Watchtower updates"
|
|
|
|
|
} else {
|
|
|
|
|
emailSubject := SubjectTag + " Watchtower updates"
|
|
|
|
|
emailSubject = e.SubjectTag + " Watchtower updates"
|
|
|
|
|
}
|
|
|
|
|
if hostname, err := os.Hostname(); err == nil {
|
|
|
|
|
emailSubject += " on " + hostname
|
|
|
|
|