-
Notifications
You must be signed in to change notification settings - Fork 5k
minikube logs not outputing to file when using --last-start-only #19931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In my case the --last-start-only addition end up giving empty file. |
couldn't quite get what you mean, I suspect it's just just an issue with |
Hi @mattisafur Just for reference, this is the implementation of the flag |
I looked at the implementation. at the moment it does the following (when flowchart
A{--last-start-only set?} --> |true| B[print start log to stdout]
A --> |false| C
C{--audit set?} --> |true| D[print audit log to stdout]
C --> |false| E[print both audit log and last start log to file]
It makes more sense to me that will will work based on these rules:
(handle a case where both I'll make a PR for this change. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What Happened?
When running
minikube logs --file log.txt --last-start-only
output is printer to the terminal and an empty file is created.output of
minikube logs --file log.txt --last-start-only --alsologtostderr
:Tested on Ubuntu running on WSL with docker driver.
output of
minikube version
:Attach the log file
Log file is not attached as the file does not contain any information about the logs command.
Operating System
Ubuntu
Driver
Docker
The text was updated successfully, but these errors were encountered: