Skip to content

Commit

Permalink
feat: log program name and version (#24)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
  • Loading branch information
wolf31o2 authored May 18, 2024
1 parent fab0e07 commit 98409c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions cmd/node/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func main() {
)
slog.SetDefault(logger)
// Run node
logger.Info(fmt.Sprintf("running: %s version %s", programName, version.GetVersionString()))
if err := node.Run(logger); err != nil {
slog.Error(err.Error())
os.Exit(1)
Expand Down
1 change: 0 additions & 1 deletion internal/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
)

func Run(logger *slog.Logger) error {
logger.Info("running node")
// TODO: make this configurable
l, err := net.Listen("tcp", ":3000")
if err != nil {
Expand Down

0 comments on commit 98409c2

Please sign in to comment.