From e01131f2f4eee523b6b5d59f61394b0eb06163fb Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Mon, 9 Mar 2020 18:10:40 +0100 Subject: [PATCH] fix: Improve cleanup log messages. (#1076) --- challenge/http01/http_challenge.go | 2 +- challenge/resolver/prober.go | 2 +- challenge/tlsalpn01/tls_alpn_challenge.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/challenge/http01/http_challenge.go b/challenge/http01/http_challenge.go index be113ed4..e6cc0d1b 100644 --- a/challenge/http01/http_challenge.go +++ b/challenge/http01/http_challenge.go @@ -56,7 +56,7 @@ func (c *Challenge) Solve(authz acme.Authorization) error { defer func() { err := c.provider.CleanUp(authz.Identifier.Value, chlng.Token, keyAuth) if err != nil { - log.Warnf("[%s] acme: error cleaning up: %v", domain, err) + log.Warnf("[%s] acme: cleaning up failed: %v", domain, err) } }() diff --git a/challenge/resolver/prober.go b/challenge/resolver/prober.go index ab45afb6..d3c71e8d 100644 --- a/challenge/resolver/prober.go +++ b/challenge/resolver/prober.go @@ -167,7 +167,7 @@ func cleanUp(solvr solver, authz acme.Authorization) { domain := challenge.GetTargetedDomain(authz) err := solvr.CleanUp(authz) if err != nil { - log.Warnf("[%s] acme: error cleaning up: %v ", domain, err) + log.Warnf("[%s] acme: cleaning up failed: %v ", domain, err) } } } diff --git a/challenge/tlsalpn01/tls_alpn_challenge.go b/challenge/tlsalpn01/tls_alpn_challenge.go index 231078eb..348e5e92 100644 --- a/challenge/tlsalpn01/tls_alpn_challenge.go +++ b/challenge/tlsalpn01/tls_alpn_challenge.go @@ -62,7 +62,7 @@ func (c *Challenge) Solve(authz acme.Authorization) error { defer func() { err := c.provider.CleanUp(domain, chlng.Token, keyAuth) if err != nil { - log.Warnf("[%s] acme: error cleaning up: %v", challenge.GetTargetedDomain(authz), err) + log.Warnf("[%s] acme: cleaning up failed: %v", challenge.GetTargetedDomain(authz), err) } }()