فهرست منبع

logsys: drop LOGSYS_LEVEL_SECURITY

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.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2245 fd59a12c-fef9-0310-b244-a6a79926bd2f
Fabio M. Di Nitto 16 سال پیش
والد
کامیت
5facfffb66
2فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 1
      exec/main.c
  2. 0 2
      include/corosync/engine/logsys.h

+ 1 - 1
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;

+ 0 - 2
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