Skip to content

Commit

Permalink
git commit -S -m"refactor(logs): update logging mechanism to prevent …
Browse files Browse the repository at this point in the history
…version printing issues"
  • Loading branch information
golnar-boosty authored Nov 20, 2024
1 parent 7f952d5 commit 49f0786
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,16 +208,16 @@ func main() {
}
case "version":

log.CustomLogger().Info("Fetching version with 'interxd version' command.")
log.CustomLogger().Info("Starting server with 'interxd version' command.")

err := versionCommand.Parse(os.Args[2:])
if err != nil {
log.CustomLogger().Error("Error executing 'interxd version' command: Failed to fetch version information.")
log.CustomLogger().Error("Failed to find INTERX version.")
panic(err)
}

if versionCommand.Parsed() {
log.CustomLogger().Info("Interx Version", config.InterxVersion)
fmt.Println(config.InterxVersion)
return
}
default:
Expand Down

0 comments on commit 49f0786

Please sign in to comment.