okteto icon indicating copy to clipboard operation
okteto copied to clipboard

Spinner not working properly with log level debug

Open jLopezbarb opened this issue 2 years ago • 1 comments

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: Captura de pantalla 2022-07-15 a las 9 29 34

To Reproduce Steps to reproduce the behavior:

  1. Run okteto up --log-level=debug on any project with a valid okteto manifest
  2. 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:

  1. Only one spinner can be active at the same time
  2. 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

jLopezbarb avatar Jul 15 '22 07:07 jLopezbarb

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

github-actions[bot] avatar Sep 17 '22 10:09 github-actions[bot]