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

When control-C on systemctl log -f xxx, it raise an ugly KeyboardInterrupt #162

Open
ladyrick opened this issue Jun 27, 2023 · 2 comments
Open

Comments

@ladyrick
Copy link
Contributor

I think it's better to catch the KeyboardInterrupt.

iShot_2023-06-27_18 51 40
@gdraheim
Copy link
Owner

I dont know what you're after. Looking at the logs like this had always been a bit hacky.

@ladyrick
Copy link
Contributor Author

Thank you for you reply.
I think the right experience would be like this. Suppose I am using systemctl log -f unit_name to display the log. When I press Control-C, the log will stop to display anymore and print nothing instead of a bunch of stack trace log.
Also, systemctl log unit_name has the same problem. But in this case I can press Q to quit normally, so it is not bothering me like log -f.

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

No branches or pull requests

2 participants