Skip to content

Commit

Permalink
fix boot version info
Browse files Browse the repository at this point in the history
  • Loading branch information
GheisMohammadi committed Aug 14, 2024
1 parent 32e08a8 commit 1e6a75e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/bootnode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ var (

func printVersion(me string) {
fmt.Fprintf(os.Stderr, "Harmony (C) 2019. %v, version %v-%v (%v %v)\n", path.Base(me), version, commit, builtBy, builtAt)
os.Exit(0)
}

func main() {
Expand Down Expand Up @@ -127,12 +126,13 @@ func main() {

if *versionFlag {
printVersion(os.Args[0])
os.Exit(0)
}

// Logging setup
utils.SetLogContext(*port, *ip)
utils.SetLogVerbosity(log.Lvl(*verbosity))
if *console != true {
if !*console {
utils.AddLogFile(fmt.Sprintf("%v/bootnode-%v-%v.log", *logFolder, *ip, *port), *logMaxSize, *logRotateCount, *logRotateMaxAge)
}

Expand Down Expand Up @@ -168,6 +168,7 @@ func main() {
)

nt := nodeConfigs.NetworkType(*networkType)
harmonyConfigs.VersionMetaData = append(harmonyConfigs.VersionMetaData, path.Base(os.Args[0]), version, commit, builtBy, builtAt)
nodeConfigs.SetVersion(harmonyConfigs.GetHarmonyVersion())
hc := harmonyConfigs.GetDefaultConfigCopy()

Expand Down

0 comments on commit 1e6a75e

Please sign in to comment.