admin: set certmagic cache logger (#5173)

same way it is set in modules/caddytls/tls.go
This commit is contained in:
bit 2022-11-24 03:49:22 +00:00 committed by GitHub
parent 6f8fe01da1
commit 762b02789a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -588,6 +588,7 @@ func (ident *IdentityConfig) certmagicConfig(logger *zap.Logger, makeCache bool)
GetConfigForCert: func(certmagic.Certificate) (*certmagic.Config, error) {
return cmCfg, nil
},
Logger: logger.Named("cache"),
})
}
cmCfg = certmagic.New(identityCertCache, template)