docker-systemctl-replacement icon indicating copy to clipboard operation
docker-systemctl-replacement copied to clipboard

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

Open ladyrick opened this issue 2 years ago • 2 comments

I think it's better to catch the KeyboardInterrupt.

iShot_2023-06-27_18 51 40

ladyrick avatar Jun 27 '23 10:06 ladyrick

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

gdraheim avatar Jun 29 '23 00:06 gdraheim

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.

ladyrick avatar Jun 29 '23 02:06 ladyrick