Skip to content

Commit

Permalink
Merge pull request #3180 from influxdb/log_commit
Browse files Browse the repository at this point in the history
Log GOMAXPROCS, version, and commit on start
  • Loading branch information
otoolep committed Jun 29, 2015
2 parents bd3284f + 1c7cfe8 commit c4a75ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v0.9.2 [unreleased]

### Bugfixes

- [#3180](https://github.com/influxdb/influxdb/pull/3180): Log GOMAXPROCS, version, and commit on startup.

## v0.9.1 [unreleased]

### Features
Expand Down
5 changes: 4 additions & 1 deletion cmd/influxd/run/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ func (cmd *Command) Run(args ...string) error {

// Set parallelism.
runtime.GOMAXPROCS(runtime.NumCPU())
fmt.Fprintf(cmd.Stderr, "GOMAXPROCS set to %d\n", runtime.GOMAXPROCS(0))

// Parse config
config, err := cmd.ParseConfig(options.ConfigPath)
Expand Down Expand Up @@ -98,6 +97,10 @@ func (cmd *Command) Run(args ...string) error {
}
cmd.Server = s

// Mark start-up in log.
log.Printf("InfluxDB starting, version %s, commit %s", cmd.Version, cmd.Commit)
log.Println("GOMAXPROCS set to", runtime.GOMAXPROCS(0))

// Begin monitoring the server's error channel.
go cmd.monitorServerErrors()

Expand Down

0 comments on commit c4a75ff

Please sign in to comment.