Skip to content

Commit

Permalink
Merge pull request #1842 from hashicorp/f-version-and-id
Browse files Browse the repository at this point in the history
Print the version and client node ID
  • Loading branch information
dadgar authored Oct 24, 2016
2 parents 66df6f3 + 902c397 commit a877e32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ func NewClient(cfg *config.Config, consulSyncer *consul.Syncer, logger *log.Logg
// Start collecting stats
go c.collectHostStats()

c.logger.Printf("[INFO] client: Node ID %q", c.Node().ID)
return c, nil
}

Expand Down
1 change: 1 addition & 0 deletions command/agent/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ func (c *Command) Run(args []string) int {

// Compile agent information for output later
info := make(map[string]string)
info["version"] = fmt.Sprintf("%s%s", config.Version, config.VersionPrerelease)
info["client"] = strconv.FormatBool(config.Client.Enabled)
info["log level"] = config.LogLevel
info["server"] = strconv.FormatBool(config.Server.Enabled)
Expand Down

0 comments on commit a877e32

Please sign in to comment.