logging level conventions
Tom Joseph
tomjose at linux.vnet.ibm.com
Thu Jan 17 01:49:29 AEDT 2019
On Monday 14 January 2019 09:49 PM, Vernon Mauery wrote:
> When making a change in netipmid, the conversation came up about user
> errors versus system errors. There are times that both should be
> logged, but obviously system errors are more severe. So in that
> project, I made system errors (like failure to communicate on dbus,
> etc.,) as log<ERR>() and user errors (like bad credentials) as
> log<INFO>().
>
> Does anyone else think that the project as a whole should make this
> distinction between system errors and user errors? Maybe add something
> to the coding style?
Agree, if there are no objections to this we should add it to the coding
guidelines so that the new developers benefit.
>
> --Vernon
>
More information about the openbmc
mailing list