From ed7e20171d8307bf286d76f165d03770caf983dc Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Mon, 28 Oct 2024 19:30:51 +0100 Subject: [PATCH] chore: rename logger to autotls --- core/node/libp2p/addrs.go | 2 +- docs/config.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/node/libp2p/addrs.go b/core/node/libp2p/addrs.go index df324c8d2..1692331e1 100644 --- a/core/node/libp2p/addrs.go +++ b/core/node/libp2p/addrs.go @@ -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 diff --git a/docs/config.md b/docs/config.md index 7bc95f368..f93f425de 100644 --- a/docs/config.md +++ b/docs/config.md @@ -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`