From db052048b6ffb84a894795f82c4368da64557ad5 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 19 Jun 2022 12:13:52 +0800 Subject: [PATCH] more debug --- email.go | 3 +++ version.go | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/email.go b/email.go index 8259953..9d1687e 100644 --- a/email.go +++ b/email.go @@ -20,6 +20,9 @@ type EmailConfig struct { } func SendMail(addr, from, subject, body string, to []string) error { + if *debugFlag { + log.Printf("SendMail : Start") + } r := strings.NewReplacer("\r\n", "", "\r", "", "\n", "", "%0a", "", "%0d", "") c, err := smtp.Dial(addr) diff --git a/version.go b/version.go index 3be5cbc..b4c7be6 100644 --- a/version.go +++ b/version.go @@ -1,6 +1,6 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "86ddd52" -var buildstamp = "2022-06-19_04:11:44" -var commits = "43" -var version = "86ddd52-b43 - 2022-06-19_04:11:44" +var githash = "4937155" +var buildstamp = "2022-06-19_04:13:42" +var commits = "44" +var version = "4937155-b44 - 2022-06-19_04:13:42"