about summary refs log tree commit diff stats
path: root/internal/server
diff options
context:
space:
mode:
authorAlan Pearce2024-07-03 17:47:43 +0200
committerAlan Pearce2024-07-03 17:48:02 +0200
commitbfc935f6ea7b00c539192e486936b8ffbb5a403e (patch)
tree2b171912871ab65ebdba83d36f94a3e1a71ebd2c /internal/server
parent1bb04d30c6d2e9aef2ff3c0d46d5618be8152bd7 (diff)
downloadwebsite-bfc935f6ea7b00c539192e486936b8ffbb5a403e.tar.lz
website-bfc935f6ea7b00c539192e486936b8ffbb5a403e.tar.zst
website-bfc935f6ea7b00c539192e486936b8ffbb5a403e.zip
fix mismatched log output from certmagic
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/tls.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/server/tls.go b/internal/server/tls.go
index 85eaac9..9481b6a 100644
--- a/internal/server/tls.go
+++ b/internal/server/tls.go
@@ -25,7 +25,6 @@ type redisConfig struct {
 }
 
 func (s *Server) serveTLS() (err error) {
-	var issuer *certmagic.ACMEIssuer
 	log := s.log.Named("tls")
 
 	// setting cfg.Logger is too late somehow
@@ -33,9 +32,10 @@ func (s *Server) serveTLS() (err error) {
 	cfg := certmagic.NewDefault()
 	cfg.DefaultServerName = s.config.Domains[0]
 
-	issuer = &certmagic.DefaultACME
+	issuer := &certmagic.DefaultACME
 	certmagic.DefaultACME.Agreed = true
 	certmagic.DefaultACME.Email = s.config.Email
+	certmagic.DefaultACME.Logger = certmagic.Default.Logger
 
 	if s.runtimeConfig.Development {
 		ca := s.runtimeConfig.ACMECA