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 17, 2025
1 parent 58ce9dc commit 9b096a7
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 @@ -269,6 +269,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 @@ -280,10 +281,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 9b096a7

Please sign in to comment.