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

chore: log the version when starting orchestrator and relayer #630

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading