[systemd-devel] [PATCH] systemctl: show hint about --full when lines don't fit

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sun Aug 11 15:19:11 PDT 2013


On Mon, Aug 05, 2013 at 11:43:44AM -0400, Daniel J Walsh wrote:
> Currently -l gives me
> Aug 05 11:36:42 redsox.boston.devel.redhat.com python[1245]: SELinux is
> preventing /usr/sbin/httpd from read access on the file /var/www/html/index.html.
> 
>                                                              *****  Plugin
> restorecon (
> 
> 
> ===================================================================================
> Aug 05 11:36:42 redsox.boston.devel.redhat.com python[1245]: SELinux is
> preventing /usr/sbin/httpd from read access on the file /var/www/html/index.html.
> 
>                                                              *****  Plugin
> restorecon ((92.2 confidence) suggests   ************************
> ...
> I want it to give me
Systemctl will now show the first 3 lines, or the first 300 bytes of
the message, whicheven is less, and add an ellipsis at the end to
signal truncation and a hint at the end of output to use systemctl
-l. systemctl -l will print the last 10 messages in full, properly
indented (there was a bug visible in your example that indentation of
second and subsequent lines was missing).

Zbyszek


More information about the systemd-devel mailing list