[Openais] [PATCH 1/9] logsys: drop LOGSYS_LEVEL_SECURITY
Fabio M. Di Nitto
fdinitto at redhat.com
Wed Jun 17 03:53:41 PDT 2009
LOGSYS_LEVEL_SECURITY is specific to corosync/openais and it
is used only in the totem configuration.
Drop the special case from logsys that's meant to be a generic
logging library and specify the correct equivalent for totem config.
Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
:100644 100644 7b62270... 2e9a337... M exec/main.c
:100644 100644 b9d4df4... 804df5d... M include/corosync/engine/logsys.h
exec/main.c | 2 +-
include/corosync/engine/logsys.h | 2 --
2 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/exec/main.c b/exec/main.c
index 7b62270..2e9a337 100644
--- a/exec/main.c
+++ b/exec/main.c
@@ -833,7 +833,7 @@ int main (int argc, char **argv)
corosync_exit_error (AIS_DONE_MAINCONFIGREAD);
}
- totem_config.totem_logging_configuration.log_level_security = LOGSYS_LEVEL_SECURITY;
+ totem_config.totem_logging_configuration.log_level_security = LOGSYS_LEVEL_WARNING;
totem_config.totem_logging_configuration.log_level_error = LOGSYS_LEVEL_ERROR;
totem_config.totem_logging_configuration.log_level_warning = LOGSYS_LEVEL_WARNING;
totem_config.totem_logging_configuration.log_level_notice = LOGSYS_LEVEL_NOTICE;
diff --git a/include/corosync/engine/logsys.h b/include/corosync/engine/logsys.h
index b9d4df4..804df5d 100644
--- a/include/corosync/engine/logsys.h
+++ b/include/corosync/engine/logsys.h
@@ -59,14 +59,12 @@ extern "C" {
/*
* Log priorities, compliant with syslog and SA Forum Log spec.
- * LOGSYS_LEVEL_SECURITY is corosync/openais specific
*/
#define LOGSYS_LEVEL_EMERG LOG_EMERG
#define LOGSYS_LEVEL_ALERT LOG_ALERT
#define LOGSYS_LEVEL_CRIT LOG_CRIT
#define LOGSYS_LEVEL_ERROR LOG_ERR
#define LOGSYS_LEVEL_WARNING LOG_WARNING
-#define LOGSYS_LEVEL_SECURITY LOG_WARNING
#define LOGSYS_LEVEL_NOTICE LOG_NOTICE
#define LOGSYS_LEVEL_INFO LOG_INFO
#define LOGSYS_LEVEL_DEBUG LOG_DEBUG
--
1.5.4.3
More information about the Openais
mailing list