mirror of https://github.com/caddyserver/caddy.git
admin: set certmagic cache logger (#5173)
same way it is set in modules/caddytls/tls.go
This commit is contained in:
parent
6f8fe01da1
commit
762b02789a
1
admin.go
1
admin.go
|
@ -588,6 +588,7 @@ func (ident *IdentityConfig) certmagicConfig(logger *zap.Logger, makeCache bool)
|
||||||
GetConfigForCert: func(certmagic.Certificate) (*certmagic.Config, error) {
|
GetConfigForCert: func(certmagic.Certificate) (*certmagic.Config, error) {
|
||||||
return cmCfg, nil
|
return cmCfg, nil
|
||||||
},
|
},
|
||||||
|
Logger: logger.Named("cache"),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
cmCfg = certmagic.New(identityCertCache, template)
|
cmCfg = certmagic.New(identityCertCache, template)
|
||||||
|
|
Loading…
Reference in New Issue