-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
minikube logs not outputing to file when using --last-start-only #19931
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. |
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: