mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03:00
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 changed files with 1 additions and 0 deletions
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 a new issue