On Sun, Mar 03, 2013 at 01:50:27PM +0100, Harald Welte wrote:

> One idea might be to have another member of the struct that allows them
> to be globally disabled/invisible.  This way the SGSN startup code could
> specify which log categories are actually used, and the VTY strings
> would be generated only for that sub-set of categories.

We are currently using a uint8_t for 'enabled' in the logging category
struct. We could use some bits for SYS_ENABLED/SYS_DISABLED to either
disable (my preference) or enable categories. The logging_vty.c code could
take this into account. The danger is that we disable something that should
be enabled.

Reply via email to