Skip to content

Commit

Permalink
chore: rename logger to autotls
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Oct 28, 2024
1 parent e6e0b7a commit ed7e201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/node/libp2p/addrs.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func P2PForgeCertMgr(cfg config.AutoTLS) interface{} {
return nil, err
}

forgeLogger := logging.Logger("p2p-forge/client").Desugar()
forgeLogger := logging.Logger("autotls").Desugar()
// TODO: revisit is below is still needed.
// seems that certmagic is written in a way that logs things using default logger
// before a custom one is set, this is the only way to ensure we don't lose
Expand Down
2 changes: 1 addition & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1761,7 +1761,7 @@ and SNI is matching `Swarm.AutoTLS.DomainSuffix`, and set up a trusted TLS certi

If you want to test this, add `/ip4/0.0.0.0/tcp/4082/tls/sni/*.libp2p.direct/ws` to [`Addresses.Swarm`](#addressesswarm).

Debugging can be enabled by setting environment variable `GOLOG_LOG_LEVEL="error,p2p-forge/client=debug"`
Debugging can be enabled by setting environment variable `GOLOG_LOG_LEVEL="error,autotls=debug,p2p-forge/client=debug"`

Default: `false`

Expand Down

0 comments on commit ed7e201

Please sign in to comment.