From 7b82d3ef3e93c0c8efe489d6b11b30f092667bf2 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 29 Jun 2024 20:47:33 +0200 Subject: pass logger to certmagic --- internal/server/tls.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/server/tls.go') diff --git a/internal/server/tls.go b/internal/server/tls.go index 254cd12..6c48f86 100644 --- a/internal/server/tls.go +++ b/internal/server/tls.go @@ -28,6 +28,9 @@ type redisConfig struct { 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] -- cgit 1.4.1