[dpdk-dev] Question about log levels and rte_panic

Matthew Hall mhall at mhcomputing.net
Sat Feb 13 20:12:51 CET 2016


> On Feb 13, 2016, at 9:43 AM, Wiles, Keith <keith.wiles at intel.com> wrote:
> 
> I would expect EMERG, ALERT and CRIT messages to be printed regardless of the log-level value

I wouldn't expect that based on the traditional custom of syslog daemons. If you specify a filter configuration, such as setlogmask or some custom logic in the syslog daemon itself, the logging system should respect it. Even if it might not make sense to a given individual.

That said, rte_panic should be making sure the messages it generates always get logged, regardless of the logging system settings, because it is hijacking control of your process which is a very hostile act. This special exemption should only happen for things that are truly fatal. Not anything else.

Matthew.


More information about the dev mailing list