mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Merge pull request #1842 from hashicorp/f-version-and-id
Print the version and client node ID
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user