From 1269b0ce7e505a482ea9e33b2c0e899e217166e1 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Thu, 26 Jun 2025 12:42:51 +0200 Subject: [PATCH] core:constructor: add a log line about http retrieval Similar to broadcast control. Useful for debugging/info purposes. (cherry picked from commit 024225eaf25bc183c6398bdae257c7c301426b79) --- core/node/bitswap.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/node/bitswap.go b/core/node/bitswap.go index 9da278305..7e87f8288 100644 --- a/core/node/bitswap.go +++ b/core/node/bitswap.go @@ -99,6 +99,11 @@ func Bitswap(serverEnabled, libp2pEnabled, httpEnabled bool) interface{} { if err != nil { return nil, err } + logger.Infof("HTTP Retrieval enabled: Allowlist: %t. Denylist: %t", + httpCfg.Allowlist != nil, + httpCfg.Denylist != nil, + ) + bitswapHTTP := httpnet.New(in.Host, httpnet.WithHTTPWorkers(int(httpCfg.NumWorkers.WithDefault(config.DefaultHTTPRetrievalNumWorkers))), httpnet.WithAllowlist(httpCfg.Allowlist),