about summary refs log tree commit diff stats
path: root/internal/server
diff options
context:
space:
mode:
authorAlan Pearce2024-12-09 18:42:01 +0100
committerAlan Pearce2024-12-09 18:42:01 +0100
commit991d3b465f6a14a78a4166a7fa24c140734610c3 (patch)
treeb99fbb1976546fa48c739834552f3723c32926ab /internal/server
parentb8377dd9585af5dec8aee7baea91d1c97a17e44b (diff)
downloadwebsite-991d3b465f6a14a78a4166a7fa24c140734610c3.tar.lz
website-991d3b465f6a14a78a4166a7fa24c140734610c3.tar.zst
website-991d3b465f6a14a78a4166a7fa24c140734610c3.zip
tls: fix certmagic maintenance using wrong logger HEAD main
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/tls.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/server/tls.go b/internal/server/tls.go
index 2e187aa..1e18001 100644
--- a/internal/server/tls.go
+++ b/internal/server/tls.go
@@ -33,8 +33,8 @@ func (s *Server) serveTLS() (err error) {
 	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