quiet output

This commit is contained in:
Jeff Carr 2025-01-08 04:08:43 -06:00
parent 811e3e108a
commit 54f4c4be3d
3 changed files with 22 additions and 1 deletions

View File

@ -1 +1,6 @@
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

View File

@ -99,7 +99,7 @@ func (m *Machine) ConfigLoad() error {
m.Hostname = hostname
m.Distro = detectDistro()
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
}

16
log.go Normal file
View File

@ -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")
}