From dc152390d7dc588b0ceccfac170beaeb46b54169 Mon Sep 17 00:00:00 2001 From: Joshua Morrison Date: Sat, 24 Feb 2024 01:11:52 -0500 Subject: [PATCH] More useful debug outputs --- env.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/env.go b/env.go index 4116ac9..e0c63d6 100644 --- a/env.go +++ b/env.go @@ -2,6 +2,7 @@ package snowball import ( "errors" + "fmt" "os" "strconv" ) @@ -54,6 +55,7 @@ func GetEpoch() uint64 { var epoch uint64 var err error if epoch, err = GetenvInteger("SNOWBALL_EPOCH_MS"); err != nil { + fmt.Println("get epoch failed: envvar SNOWBALL_EPOCH_MS not found, using default") return 1288834974657 } @@ -69,6 +71,7 @@ func GetServerId() uint64 { var serverId uint64 var err error if serverId, err = GetenvInteger("SNOWBALL_NODE_ID"); err != nil { + fmt.Println("get epoch failed: envvar SNOWBALL_NODE_ID not found, using default") return 0 }