From bfc935f6ea7b00c539192e486936b8ffbb5a403e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 3 Jul 2024 17:47:43 +0200 Subject: fix mismatched log output from certmagic --- internal/server/tls.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') 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 -- cgit 1.4.1