Skip to content

Commit

Permalink
refactor: named acme-broker logger
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Jan 21, 2025
1 parent 660a36b commit 60f66f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/acme.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ func NewP2PForgeCertMgr(opts ...P2PForgeCertMgrOptions) (*P2PForgeCertMgr, error
})

// Wire up Issuer that does brokered DNS-01 ACME challenge
acmeLog := mgrCfg.log.Named("acme-broker")
brokeredDNS01Issuer := certmagic.NewACMEIssuer(mgr.certmagic, certmagic.ACMEIssuer{
CA: mgrCfg.caEndpoint,
Email: mgrCfg.userEmail,
Expand All @@ -300,10 +301,10 @@ func NewP2PForgeCertMgr(opts ...P2PForgeCertMgrOptions) (*P2PForgeCertMgr, error
modifyForgeRequest: mgrCfg.modifyForgeRequest,
userAgent: mgrCfg.userAgent,
allowPrivateForgeAddresses: mgrCfg.allowPrivateForgeAddresses,
log: mgrCfg.log.Named("dns01solver"),
log: acmeLog.Named("dns01solver"),
},
TrustedRoots: mgrCfg.trustedRoots,
Logger: mgr.certmagic.Logger,
Logger: acmeLog.Desugar(),
})
mgr.certmagic.Issuers = []certmagic.Issuer{brokeredDNS01Issuer}

Expand Down

0 comments on commit 60f66f8

Please sign in to comment.