[Linux-ha-dev] ha_logger.c, why log_prio limited only to LOG_INFO and LOG_DEBUG ?

Joe Bill pica1dilly at yahoo.com
Wed Jun 18 07:41:11 MDT 2008


> if (strcmp(logtype, "ha-log") == 0){
>        priority = LOG_INFO;
> } else if (strcmp(logtype, "ha-debug") == 0){
>        priority = LOG_DEBUG;
> }else{
>        goto err_exit;
> }

Can anybody give the reason why ha_logger.c limits log_prio to only LOG_INFO and LOG_DEBUG ?

Instead of modifying the '-D <ha-log/ha-debug>' option, would it not make more sense to add a '-p <info/notice/warning/err/crit/alert/emerg/debug>' priority option, and make -p and -D exclusive ?




      


More information about the Linux-HA-Dev mailing list