diff options
-rw-r--r-- | internal/server/tls.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/server/tls.go b/internal/server/tls.go index dd69a44..2e187aa 100644 --- a/internal/server/tls.go +++ b/internal/server/tls.go @@ -33,9 +33,8 @@ func (s *Server) serveTLS() (err error) { wildcardDomain := "*." + s.config.WildcardDomain certificateDomains := slices.Clone(s.config.Domains) - // setting cfg.Logger is too late somehow - certmagic.Default.Logger = log.GetLogger().Named("certmagic") cfg := certmagic.NewDefault() + cfg.Logger = log.GetLogger().Named("certmagic") acme := certmagic.DefaultACME acme.Agreed = true @@ -82,7 +81,7 @@ func (s *Server) serveTLS() (err error) { acme.DNS01Solver = &certmagic.DNS01Solver{ DNSManager: certmagic.DNSManager{ DNSProvider: pdns, - Logger: certmagic.Default.Logger, + Logger: cfg.Logger, }, } |