okteto
okteto copied to clipboard
Spinner not working properly with log level debug
Describe the bug
We have several race conditions with the spinner trying to write to stdout while the logger is also writing to stdout. It results in this weird behavior:
To Reproduce Steps to reproduce the behavior:
- Run
okteto up --log-level=debug
on any project with a valid okteto manifest - See error
Expected behavior I'd like to move the spinner into the log package and it should be the logger the one that checks:
- Only one spinner can be active at the same time
- Stop and restart the spinner if the logger needs to write to stdout
Desktop (please complete the following information):
- OS: macOS
- Version 2.4.2
Additional context This will also allow having more spinners and giving output to the user as soon as possible because we won't face any race conditions with the spinner
This issue is stale because it has been open for 60 days with no activity. Comment on this issue or it will be closed in 7 days