Print running version and commit in log
parent
6e4b91b351
commit
a00c3d1a60
|
@ -37,6 +37,11 @@ const (
|
|||
func main() {
|
||||
log.SetFlags(0)
|
||||
|
||||
// If commit not set, make that clear.
|
||||
if commit == "" {
|
||||
commit = "unknown"
|
||||
}
|
||||
|
||||
// Shift binary name off argument list.
|
||||
args := os.Args[1:]
|
||||
|
||||
|
|
|
@ -23,6 +23,8 @@ import (
|
|||
)
|
||||
|
||||
func Run(config *Config, join, version string, logWriter *os.File) (*messaging.Broker, *influxdb.Server) {
|
||||
log.Printf("influxdb started, version %s, commit %s", version, commit)
|
||||
|
||||
// Parse the configuration and determine if a broker and/or server exist.
|
||||
configExists := config != nil
|
||||
if config == nil {
|
||||
|
|
Loading…
Reference in New Issue