Skip to content

Commit

Permalink
Add version sha to server startup output
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferai committed Nov 22, 2016
1 parent 9d2f60a commit 2a84f79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions command/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,10 @@ func (c *ServerCommand) Run(args []string) int {

defer c.cleanupGuard.Do(listenerCloseFunc)

infoKeys = append(infoKeys, "version")
info["version"] = version.GetVersion().FullVersionNumber()
infoKeys = append(infoKeys, "version", "version_sha")
verInfo := version.GetVersion()
info["version"] = verInfo.FullVersionNumber()
info["version_sha"] = strings.Trim(verInfo.Revision, "'")

// Server configuration output
padding := 24
Expand Down

0 comments on commit 2a84f79

Please sign in to comment.