debug email

This commit is contained in:
shoopea 2022-06-19 11:59:17 +08:00
parent 7c309b850b
commit 86ddd52642
2 changed files with 6 additions and 4 deletions

View File

@ -26,6 +26,7 @@ func main() {
email = new(Email)
email.startTime = time.Now()
email.items = make([]string, 0)
err := cfg.Load()
if err != nil {
@ -41,6 +42,7 @@ func main() {
if len(email.items) > 0 {
SendMail(cfg.Email.smtpHost, cfg.Email.fromEmail, "Autobackup report", fmt.Sprintf("%v", email.items), cfg.Email.toEmail)
log.Printf("Sending summary email\r\n%v", email.items)
}
}

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "9594fd7"
var buildstamp = "2022-06-17_14:11:08"
var commits = "41"
var version = "9594fd7-b41 - 2022-06-17_14:11:08"
var githash = "7c309b8"
var buildstamp = "2022-06-19_03:58:59"
var commits = "42"
var version = "7c309b8-b42 - 2022-06-19_03:58:59"