diff options
author | Alan Pearce | 2024-06-29 20:47:33 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-29 20:47:33 +0200 |
commit | 7b82d3ef3e93c0c8efe489d6b11b30f092667bf2 (patch) | |
tree | 3444b56a7e654a88fc2d20561e322f4f3723cb05 /internal | |
parent | 0e50089ea4b4bbd89c58c379b252baa2d09853ed (diff) | |
download | website-7b82d3ef3e93c0c8efe489d6b11b30f092667bf2.tar.lz website-7b82d3ef3e93c0c8efe489d6b11b30f092667bf2.tar.zst website-7b82d3ef3e93c0c8efe489d6b11b30f092667bf2.zip |
pass logger to certmagic
Diffstat (limited to 'internal')
-rw-r--r-- | internal/server/tls.go | 3 |
1 files changed, 3 insertions, 0 deletions
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] |