updated libs

This commit is contained in:
ston1th 2021-10-16 19:13:57 +02:00
commit f305f96195
11 changed files with 79 additions and 265 deletions

View file

@ -15,7 +15,9 @@ import (
"git.giftfish.de/ston1th/haproxy-lb/pkg/etcd"
"git.giftfish.de/ston1th/haproxy-lb/pkg/raft"
"github.com/go-logr/logr"
"github.com/iand/logfmtr"
//"github.com/iand/logfmtr"
"git.giftfish.de/ston1th/logfmtr"
)
var (
@ -36,6 +38,7 @@ func main() {
logopts.TimestampFormat = "2006-01-02T15:04:05.000Z-0700"
logopts.AddCaller = true
logopts.CallerSkip = 1
logopts.Timezone = true
logfmtr.UseOptions(logopts)
flag.IntVar(&verbosity, "v", verbosity, "number for the log level verbosity")
@ -59,7 +62,7 @@ func main() {
log.Info("creating cluster", "mode", "etcd")
c = etcd.NewCluster(logfmtr.New().WithName("etcd"))
}
log.Info("starting api server", "address", cfg.APIServer.Listen, "tls", cfg.APIServer.TLS != nil)
log.Info("starting api server", "address", cfg.APIServer.Listen, "tls", cfg.APIServer.TLS != nil, "auth", !cfg.APIServer.DisableAuth)
srv, err := api.NewServer(cfg, logfmtr.New().WithName("api"))
if err != nil {
fatal(err, "init failed")