github.com/blevesearch/bleve/v2 v2.0.6
github.com/boombuler/barcode v1.0.1 // indirect
github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b // indirect
- github.com/caddyserver/certmagic v0.14.0
+ github.com/caddyserver/certmagic v0.14.1
github.com/chi-middleware/proxy v1.1.1
github.com/couchbase/go-couchbase v0.0.0-20210224140812-5740cd35f448 // indirect
github.com/couchbase/gomemcached v0.1.2 // indirect
github.com/bradfitz/gomemcache v0.0.0-20190329173943-551aad21a668/go.mod h1:H0wQNHz2YrLsuXOZozoeDmnHXkNCRmMW0gwFWDfEZDA=
github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b h1:L/QXpzIa3pOvUGt1D1lA5KjYhPBAN/3iWdP7xeFS9F0=
github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b/go.mod h1:H0wQNHz2YrLsuXOZozoeDmnHXkNCRmMW0gwFWDfEZDA=
-github.com/caddyserver/certmagic v0.14.0 h1:XW1o32s7smIYEJSc6g+N8YXljpjRo5ZE2zi3CIYTs74=
-github.com/caddyserver/certmagic v0.14.0/go.mod h1:oRQOZmUVKwlpgNidslysHt05osM9uMrJ4YMk+Ot4P4Q=
+github.com/caddyserver/certmagic v0.14.1 h1:8RIFS/LbGne/I7Op56Kkm2annnei7io9VW/IWDttE9U=
+github.com/caddyserver/certmagic v0.14.1/go.mod h1:oRQOZmUVKwlpgNidslysHt05osM9uMrJ4YMk+Ot4P4Q=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
var issuedCert *IssuedCertificate
var issuerUsed Issuer
for i, issuer := range issuers {
- log.Debug(fmt.Sprintf("trying issuer %d/%d", i+1, len(cfg.Issuers)),
- zap.String("issuer", issuer.IssuerKey()))
+ if log != nil {
+ log.Debug(fmt.Sprintf("trying issuer %d/%d", i+1, len(cfg.Issuers)),
+ zap.String("issuer", issuer.IssuerKey()))
+ }
if prechecker, ok := issuer.(PreChecker); ok {
err = prechecker.PreCheck(ctx, []string{name}, interactive)
if errors.As(err, &problem) {
errToLog = problem
}
- log.Error("could not get certificate from issuer",
- zap.String("identifier", name),
- zap.String("issuer", issuer.IssuerKey()),
- zap.Error(errToLog))
+ if log != nil {
+ log.Error("could not get certificate from issuer",
+ zap.String("identifier", name),
+ zap.String("issuer", issuer.IssuerKey()),
+ zap.Error(errToLog))
+ }
}
if err != nil {
// only the error from the last issuer will be returned, but we logged the others
if errors.As(err, &problem) {
errToLog = problem
}
- log.Error("could not get certificate from issuer",
- zap.String("identifier", name),
- zap.String("issuer", issuer.IssuerKey()),
- zap.Error(errToLog))
+ if log != nil {
+ log.Error("could not get certificate from issuer",
+ zap.String("identifier", name),
+ zap.String("issuer", issuer.IssuerKey()),
+ zap.Error(errToLog))
+ }
}
if err != nil {
// only the error from the last issuer will be returned, but we logged the others