fixed logging
This commit is contained in:
parent
7c7b816813
commit
5bb67f7922
2 changed files with 3 additions and 3 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ func (c *Context) log() {
|
|||
c.logger.Info("access",
|
||||
"addr", c.Request.RemoteAddr,
|
||||
"method", c.Request.Method,
|
||||
"url", c.Request.URL,
|
||||
"url", c.Request.URL.Path,
|
||||
"status", c.Status,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue