Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
feat: log the version when starting orchestrator and relayer (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id authored Nov 30, 2023
1 parent 071cba2 commit 2496504
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cmd/blobstream/orchestrator/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"path/filepath"
"time"

"github.com/celestiaorg/orchestrator-relayer/cmd/blobstream/version"

"github.com/celestiaorg/orchestrator-relayer/cmd/blobstream/base"

"github.com/celestiaorg/orchestrator-relayer/cmd/blobstream/common"
Expand Down Expand Up @@ -66,7 +68,8 @@ func Start() *cobra.Command {
return err
}

logger.Info("initializing orchestrator", "home", homeDir)
buildInfo := version.GetBuildInfo()
logger.Info("initializing orchestrator", "home", homeDir, "version", buildInfo.SemanticVersion, "build_date", buildInfo.BuildTime)

ctx, cancel := context.WithCancel(cmd.Context())
defer cancel()
Expand Down
6 changes: 5 additions & 1 deletion cmd/blobstream/relayer/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"path/filepath"
"time"

"github.com/celestiaorg/orchestrator-relayer/cmd/blobstream/version"

"github.com/celestiaorg/orchestrator-relayer/cmd/blobstream/base"

ethcmn "github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -119,7 +121,9 @@ func Start() *cobra.Command {
return err
}

logger.Info("initializing relayer", "home", homeDir)
buildInfo := version.GetBuildInfo()
logger.Info("initializing relayer", "home", homeDir, "version", buildInfo.SemanticVersion, "build_date", buildInfo.BuildTime)

ctx, cancel := context.WithCancel(cmd.Context())
defer cancel()

Expand Down

0 comments on commit 2496504

Please sign in to comment.