debug email
This commit is contained in:
parent
7c309b850b
commit
86ddd52642
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user