Skip to content

Commit

Permalink
feat(forge): set certmagic default logger to use go-log
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Sep 20, 2024
1 parent bef0a21 commit 06708d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/node/libp2p/addrs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"os"

logging "github.com/ipfs/go-log"
version "github.com/ipfs/kubo"
"github.com/ipfs/kubo/config"
p2pforge "github.com/ipshipyard/p2p-forge/client"
Expand Down Expand Up @@ -138,6 +139,8 @@ func P2PForgeCertMgr(cfg config.ForgeClient) interface{} {
return nil, err
}

certmagic.Default.Logger = logging.Logger("certmagic").Desugar()

certMgr, err := p2pforge.NewP2PForgeCertMgr(
p2pforge.WithForgeDomain(cfg.ForgeDomain.WithDefault(config.DefaultForgeDomain)),
p2pforge.WithForgeRegistrationEndpoint(cfg.ForgeEndpoint.WithDefault(config.DefaultForgeEndpoint)),
Expand Down

0 comments on commit 06708d8

Please sign in to comment.