[Openais] [PATCH] logsys: don't overwrite priority

Christine Caulfield ccaulfie at redhat.com
Thu Jul 3 03:42:51 PDT 2008


logsys_config_subsys_set() always changes the priority of subsystem 
logging. Despite there being a check below the assignment to make sure 
the new priority is higher than the old.

This patch fixes the anomoly but it open up a few other questions.

We need _logsys_subsys_create() to work like this (patched) because 
otherwise the defaults in constructor macros in loaded lcrso modules 
will overwrite options set in the config file. Making debug options in 
the config file useless.

However, it will be useful to downgrade logging on-the-fly in a 
production environment if a customer has been asked to enable debugging 
and now wants to switch it off without a node restart.


-- 

Chrissie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logsys.create.patch
Type: text/x-patch
Size: 463 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20080703/e74e4956/attachment.bin 


More information about the Openais mailing list