Skip to content

Commit

Permalink
More useful debug outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrM21632 committed Feb 24, 2024
1 parent 0014621 commit dc15239
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions env.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package snowball

import (
"errors"
"fmt"
"os"
"strconv"
)
Expand Down Expand Up @@ -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
}

Expand All @@ -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
}

Expand Down

0 comments on commit dc15239

Please sign in to comment.