debugs
This commit is contained in:
parent
fc8600e1c0
commit
8aa30b6fe0
@ -2,7 +2,9 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/fatih/color"
|
"github.com/fatih/color"
|
||||||
logging "github.com/ipfs/go-log/v2"
|
logging "github.com/ipfs/go-log/v2"
|
||||||
@ -24,6 +26,11 @@ var log = logging.Logger("main")
|
|||||||
var AdvanceBlockCmd *cli.Command
|
var AdvanceBlockCmd *cli.Command
|
||||||
|
|
||||||
func main() {
|
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
|
api.RunningNodeType = api.NodeFull
|
||||||
|
|
||||||
lotuslog.SetupLogLevels()
|
lotuslog.SetupLogLevels()
|
||||||
|
Loading…
Reference in New Issue
Block a user