quiet output
This commit is contained in:
parent
811e3e108a
commit
54f4c4be3d
|
@ -1 +1,6 @@
|
||||||
protobuf definition files for zookeeper
|
protobuf definition files for zookeeper
|
||||||
|
|
||||||
|
* experimental. at this point, it's just stubbed in
|
||||||
|
* zookeeper is similar to the apache zookeeper project
|
||||||
|
* you can use it to maintain the systems in your cluster
|
||||||
|
* zookeeper works with virtigo to maintain your private cloud
|
||||||
|
|
|
@ -99,7 +99,7 @@ func (m *Machine) ConfigLoad() error {
|
||||||
m.Hostname = hostname
|
m.Hostname = hostname
|
||||||
m.Distro = detectDistro()
|
m.Distro = detectDistro()
|
||||||
m.initPackages()
|
m.initPackages()
|
||||||
log.Info("zoopb.ConfigLoad()", m.Hostname, "runs", m.Distro, "with", m.Packages.Len(), "packages")
|
log.Log(INFO, "zoopb.ConfigLoad()", m.Hostname, "runs", m.Distro, "with", m.Packages.Len(), "packages")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
package zoopb
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go.wit.com/log"
|
||||||
|
)
|
||||||
|
|
||||||
|
var INFO *log.LogFlag
|
||||||
|
var WARN *log.LogFlag
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
full := "go.wit.com/lib/protobuf/zoopb"
|
||||||
|
short := "zoopb"
|
||||||
|
|
||||||
|
INFO = log.NewFlag("INFO", false, full, short, "general forgepb things")
|
||||||
|
WARN = log.NewFlag("WARN", true, full, short, "zoopb warnings")
|
||||||
|
}
|
Loading…
Reference in New Issue