fixed logging

This commit is contained in:
ston1th 2021-03-07 13:55:41 +01:00
commit 5bb67f7922
2 changed files with 3 additions and 3 deletions

View file

@ -48,13 +48,13 @@ func main() {
c = etcd.NewCluster(klogr.New().WithName("etcd"))
}
log.Info("starting api server", "address", cfg.Server.Listen, "tls", cfg.Server.TLS != nil)
srv, err := api.NewServer(cfg, log.WithName("api"))
srv, err := api.NewServer(cfg, klogr.New().WithName("api"))
if err != nil {
fatal(err, "init failed")
}
log.Info("starting vip-controller")
callbacks, err := controller.NewLBController(cfg, srv, log.WithName("vip-controller"))
callbacks, err := controller.NewLBController(cfg, srv, klogr.New().WithName("vip-controller"))
if err != nil {
fatal(err, "init failed")
}