Skip to content
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

Scrambled spaces in logging #72

Closed
Michaelvll opened this issue Nov 30, 2021 · 6 comments
Closed

Scrambled spaces in logging #72

Michaelvll opened this issue Nov 30, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@Michaelvll
Copy link
Collaborator

There's also a situation where @infwinston and I saw - sometimes after Ctrl-C, or after tailing the log, the lines contain scrambled spaces (like we saw before) or the shell's cursor disappears. Did you see that issue?

Originally posted by @concretevitamin in #69 (comment)

@Michaelvll
Copy link
Collaborator Author

@michaelzhiluo Hi Michael, could you please describe the issue you observed? Is it during provision or executing the tasks? Is it happening for the multiple tasks scenario (for this one, we may need to set stream_logs to false to avoid multiple tasks shooting the outputs to the console simultaneously)? Thanks!

@Michaelvll
Copy link
Collaborator Author

I found a problem with the Ctrl-C. When the provision/task is running and printing out the results, sometimes, Ctrl-C does not work. We may need to capture the KeyboardInterrupt exception while redirecting the output.

@michaelzhiluo
Copy link
Collaborator

@Michaelvll Sorry just saw this! I am not observing this issue anymore (somehow it fixed itself)

@Michaelvll
Copy link
Collaborator Author

Michaelvll commented Dec 2, 2021

There's also a situation where @infwinston and I saw - sometimes after Ctrl-C, or after tailing the log, the lines contain scrambled spaces (like we saw before) or the shell's cursor disappears. Did you see that issue?

Originally posted by @concretevitamin in #69 (comment)

I reproduced the error. After tail -f <sky_logs> when there is a progress bar 'progressing' and Ctrl-C, the cursor will disappear.

Current TODOs:

  • Fix cursor missing problem (Reason: sometimes the loggs will output "\x1b[?25l"], which will hide the cursor)
  • Fix Ctrl-C not responding problem

@concretevitamin
Copy link
Collaborator

concretevitamin commented Dec 2, 2021 via email

@Michaelvll Michaelvll mentioned this issue Dec 2, 2021
3 tasks
@Michaelvll Michaelvll added the enhancement New feature or request label Dec 3, 2021
@Michaelvll
Copy link
Collaborator Author

Fixed in #82. Please feel free to open a new issue if you find any problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants