Fix log output
MetalLB's logger is based on pairs of key and value.
This commit changes the output of the logger in the Run function
at internal/k8s/k8s.go, as currently it outputs:
"{"Starting Manager":"(MISSING)","caller":"k8s.go:394","level":"info","ts":"2022-05-24T07:15:18Z"}"
This will remove the "MISSING" text.
@@ -446,7 +446,7 @@ func (c *Client) PodIPs(namespace, labels string) ([]string, error) {
func (c *Client) Run(stopCh <-chan struct{}) error {
ctx := ctrl.SetupSignalHandler()
- level.Info(c.logger).Log("Starting Manager")
+ level.Info(c.logger).Log("op", "Run", "msg", "Starting Manager")
if err := c.mgr.Start(ctx); err != nil {
return err
}
