From 8aa30b6fe00022c69cff3858c793d14684250e59 Mon Sep 17 00:00:00 2001 From: "jonathan@vulcanize.io" Date: Mon, 6 May 2024 18:50:34 +0000 Subject: [PATCH] debugs --- cmd/lotus/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/lotus/main.go b/cmd/lotus/main.go index 85324e466..844356a75 100644 --- a/cmd/lotus/main.go +++ b/cmd/lotus/main.go @@ -2,7 +2,9 @@ package main import ( "context" + "fmt" "os" + "strings" "github.com/fatih/color" logging "github.com/ipfs/go-log/v2" @@ -24,6 +26,11 @@ var log = logging.Logger("main") var AdvanceBlockCmd *cli.Command func main() { + libp2p_addr := os.Getenv("LOTUS_LIBP2P_LISTENADDRESSES") + fmt.Println("env", libp2p_addr) + if len(libp2p_addr) > 0 && strings.Contains(libp2p_addr, ",") { + fmt.Println("env var is csv") + } api.RunningNodeType = api.NodeFull lotuslog.SetupLogLevels()