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
1 changed files with 1 additions and 0 deletions

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)