pass logger to certmagic
Alan Pearce alan@alanpearce.eu
Sat, 29 Jun 2024 20:47:33 +0200
1 files changed, 3 insertions(+), 0 deletions(-)
jump to
M internal/server/tls.go → internal/server/tls.go
@@ -28,6 +28,9 @@ func (s *Server) serveTLS() (err error) { var issuer *certmagic.ACMEIssuer + // setting cfg.Logger is too late somehow + certmagic.Default.Logger = log.GetLogger(). + Named("certmagic") cfg := certmagic.NewDefault() cfg.DefaultServerName = s.config.Domains[0]