all repos — website @ 991d3b465f6a14a78a4166a7fa24c140734610c3

My website

tls: fix certmagic maintenance using wrong logger
Alan Pearce alan@alanpearce.eu
Mon, 09 Dec 2024 18:42:01 +0100
commit

991d3b465f6a14a78a4166a7fa24c140734610c3

parent

b8377dd9585af5dec8aee7baea91d1c97a17e44b

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M internal/server/tls.gointernal/server/tls.go
@@ -33,8 +33,8 @@ 	wildcardDomain := "*." + s.config.WildcardDomain
 	certificateDomains := slices.Clone(s.config.Domains)
 
+	certmagic.Default.Logger = log.GetLogger().Named("certmagic")
 	cfg := certmagic.NewDefault()
-	cfg.Logger = log.GetLogger().Named("certmagic")
 
 	acme := certmagic.DefaultACME
 	acme.Agreed = true