Skip to content

Commit

Permalink
*: add release version. (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
disksing authored Aug 31, 2017
1 parent d092c8f commit 29542e9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions server/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,24 @@ const (

// Version information.
var (
PDBuildTS = "None"
PDGitHash = "None"
PDGitBranch = "None"
PDReleaseVersion = "0.9.0"
PDBuildTS = "None"
PDGitHash = "None"
PDGitBranch = "None"
)

// LogPDInfo prints the PD version information.
func LogPDInfo() {
log.Infof("Welcome to Placement Driver (PD).")
log.Infof("Version:")
log.Infof("Release Version: %s", PDReleaseVersion)
log.Infof("Git Commit Hash: %s", PDGitHash)
log.Infof("Git Branch: %s", PDGitBranch)
log.Infof("UTC Build Time: %s", PDBuildTS)
}

// PrintPDInfo prints the PD version information without log info.
func PrintPDInfo() {
fmt.Println("Release Version:", PDReleaseVersion)
fmt.Println("Git Commit Hash:", PDGitHash)
fmt.Println("Git Branch:", PDGitBranch)
fmt.Println("UTC Build Time: ", PDBuildTS)
Expand Down

0 comments on commit 29542e9

Please sign in to comment.