Explorar o código

Merge pull request #2876 from xiang90/little_fix

etcdmian: remove main prefix in logging
Xiang Li %!s(int64=11) %!d(string=hai) anos
pai
achega
7ad2b22498
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      etcdmain/etcd.go

+ 1 - 1
etcdmain/etcd.go

@@ -76,7 +76,7 @@ func Main() {
 	if envMaxProcs, err := strconv.Atoi(os.Getenv("GOMAXPROCS")); err == nil {
 	if envMaxProcs, err := strconv.Atoi(os.Getenv("GOMAXPROCS")); err == nil {
 		GoMaxProcs = envMaxProcs
 		GoMaxProcs = envMaxProcs
 	}
 	}
-	log.Printf("main: setting maximum number of CPUs to %d, total number of available CPUs is %d", GoMaxProcs, runtime.NumCPU())
+	log.Printf("setting maximum number of CPUs to %d, total number of available CPUs is %d", GoMaxProcs, runtime.NumCPU())
 	runtime.GOMAXPROCS(GoMaxProcs)
 	runtime.GOMAXPROCS(GoMaxProcs)
 
 
 	// TODO: check whether fields are set instead of whether fields have default value
 	// TODO: check whether fields are set instead of whether fields have default value