From 8a530eb8139e9cb235355b80d9cbfdaa6b2c2e43 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Thu, 18 Feb 2021 23:42:07 +0100 Subject: logmsg --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index d32fb01..e561c1e 100644 --- a/main.go +++ b/main.go @@ -91,7 +91,7 @@ func forward(targetEmail string, data []byte) error { err = smtp.SendMail(mxes[0].Host+":25", nil, `forwarder@localnet.cc`, []string{targetEmail}, builder.Bytes()) if err, ok := err.(*textproto.Error); ok { if 400 <= err.Code && err.Code < 500 { - log.Printf(`retry sleep 120s count=%v code=%v`, retryCount, err.Code) + log.Printf(`retry sleep 120s count=%v code=%v msg=%v`, retryCount, err.Code, err.Msg) time.Sleep(120 * time.Second) retryCount-- continue -- cgit v1.2.1