Properly reproduce the nopLogger as before

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
pull/30708/head
Benoit Tigeot 5 months ago
parent baa597c567
commit 5580f61157
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C

@ -163,7 +163,7 @@ func New(getter genericclioptions.RESTClientGetter) *Client {
factory := cmdutil.NewFactory(getter)
c := &Client{
Factory: factory,
Log: slog.Default(),
Log: slog.New(slog.NewTextHandler(io.Discard, nil)),
}
return c
}

Loading…
Cancel
Save