Fix #520. Print influxdb's version in the log

pull/546/head
John Shahid 2014-05-13 16:58:51 -04:00
parent b2f229ef09
commit 3479a7a0b5
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
### Features
- [Issue #505](https://github.com/influxdb/influxdb/issues/505). Return a version header with http the response (Thanks, @majst01)
- [Issue #520](https://github.com/influxdb/influxdb/issues/520). Print the version to the log file
### Bugfixes

View File

@ -115,9 +115,9 @@ func main() {
}
if config.BindAddress == "" {
log.Info("Starting Influx Server...")
log.Info("Starting Influx Server %s...", version)
} else {
log.Info("Starting Influx Server bound to %s ...", config.BindAddress)
log.Info("Starting Influx Server %s bound to %s...", version, config.BindAddress)
}
fmt.Printf(`
+---------------------------------------------+