It's not possible to get logs during command construction #1731
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What happened:
While preparing for KubeCon EU SIG CLI presentation I've wanted to show how users can see the logs when using kubectl preferences.
So I've run:
with an empty
$HOME/.kube/kuberc
file, hoping to see this messagehttps://github.com/kubernetes/kubernetes/blob/bdda0a530ed26fd5b9f389ae4333a748de861f32/staging/src/k8s.io/kubectl/pkg/kuberc/marshal.go#L99
but sadly I didn't get any. I started looking around and due to how we create commands we only initialize logging when running command.
What you expected to happen:
I'd like to see the output for all log messages even during command construction.
How to reproduce it (as minimally and precisely as possible):
The text was updated successfully, but these errors were encountered: