Skip to content

Commit

Permalink
Remove logo output on startup and output gomaxprocs setting
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldix committed Mar 29, 2015
1 parent 24db5f2 commit d8aca60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/influxd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const (

func main() {
log.SetFlags(0)
log.SetPrefix(`[srvr] `)
log.SetFlags(log.LstdFlags)
rand.Seed(time.Now().UnixNano())

// If commit not set, make that clear.
Expand All @@ -47,6 +49,7 @@ func main() {

// Set parallelism.
runtime.GOMAXPROCS(runtime.NumCPU())
log.Printf("GOMAXPROCS set to %d", runtime.GOMAXPROCS(0))

// Shift binary name off argument list.
args := os.Args[1:]
Expand Down Expand Up @@ -116,8 +119,6 @@ func execRun(args []string) {

// Print sweet InfluxDB logo and write the process id to file.
fmt.Print(logo)
log.SetPrefix(`[srvr] `)
log.SetFlags(log.LstdFlags)
writePIDFile(*pidPath)

// Parse configuration file from disk.
Expand Down

0 comments on commit d8aca60

Please sign in to comment.