Re: use unit names in systemd output by default?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, Jun 25, 2021 at 12:21 PM Zbigniew Jędrzejewski-Szmek
<zbyszek@xxxxxxxxx> wrote:
>
> Hi,
>
> systemd has systemd.status_unit_format= / [Manager].StatusUnitFormat=
> / -Dstatus-unit-format-default= option to use unit names instead of the
> Description in messages on the kernel console and in logs:
>
> - Jun 20 22:04:48 krowka systemd[1]: Started Rule-based Manager for Device Events and Files.
> + Jun 20 22:04:48 krowka systemd[1]: Started systemd-udevd.service.
>
> I find this more convenient because it's briefer, so it fits better on
> a terminal, but primarily because I can select&paste the unit name for
> further lookup. When Description is used, and I'm not familiar with
> the unit, I'll often use grep first to figure out what the unit name
> actually is. Finally, unit Descriptions are often not very good, and
> the name is at least as informative…

I would vote for unit-names over description, as I can use them to
search information in the logs or in docs.

But I wonder why don't we consider having both unit name and description

Could something like

   Jun 20 22:04:48 krowka systemd[1]: Starting systemd-udevd.service -
Rule-based Manager for Device Events...
   Jun 20 22:04:48 krowka systemd[1]: Started systemd-udevd.service.

be an option?

You mention brevity, but do we really need to save space here?

> Would people be opposed to making this the default (setting
> -Dstatus-unit-format-default=name in build options)? People who like
> the old default could set StatusUnitFormat=description in systemd.conf
>
> Zbyszek
> _______________________________________________
> devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
> Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure


-- 
Aleksandra Fedorova
bookwar on Libera Chat
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux