Cluster Project branch, master, updated. cluster-2.99.05-40-gf80715e
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Cluster Project".
The branch, master has been updated
via f80715e00a254edc1d42831df05abea8f0ebf6d0 (commit)
from 9e40fc5f3e25a47eb469fd8e89874d28f755cd86 (commit)Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit f80715e00a254edc1d42831df05abea8f0ebf6d0
Author: Lon Hohberger <[email protected]> Date: Wed Jul 2 14:57:28 2008 -0400
[fence] Make fence_xvm[d] use normal log levels
It used LOG_NOTICE for info-level and LOG_INFO for debug-level notices due to noise from logsys which has now been resolved in the trunk of openais.
-----------------------------------------------------------------------
Summary of changes:
fence/agents/xvm/debug.c | 2 +- fence/agents/xvm/debug.h | 10 +--------- fence/agents/xvm/fence_xvm.c | 2 +- fence/agents/xvm/fence_xvmd.c | 8 +++++--- fence/agents/xvm/ip_lookup.c | 2 +- fence/agents/xvm/mcast.c | 2 +- fence/agents/xvm/options.c | 2 +- fence/agents/xvm/simple_auth.c | 2 +- fence/agents/xvm/tcp.c | 2 +- fence/agents/xvm/virt.c | 2 +- fence/agents/xvm/xml.c | 2 +- 11 files changed, 15 insertions(+), 21 deletions(-)
fence/agents/xvm/debug.c +1 -1
@@ -1,7 +1,7 @@#include <stdio.h> #include "debug.h" -LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_NOTICE ); +LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_INFO );static int _debug =0 ;
fence/agents/xvm/debug.h +1 -9
@@ -6,18 +6,10 @@inline void dset (int );inline int dget (void ); -/* -* Intentionally uses LOG_INFO for debugging if debugging is specified -* because logsys's debugging level dumps immense amounts of noise to -* the log (such as the full path to the file at compile-time and line #) -* -* Specify >10 if you want this information. -*/ - #define dbg_printf(level, fmt, args...) \ do { \ if (dget()>=level) \ - log_printf(dget()>10?LOG_DEBUG:LOG_INFO, fmt, ##args); \ + log_printf(LOG_DEBUG, fmt, ##args); \ } while(0)#endif
fence/agents/xvm/fence_xvm.c +1 -1
@@ -43,7 +43,7 @@ LOGSYS_DECLARE_SYSTEM (NULL,LOGDIR "/fence_xvm.log" , SYSLOGFACILITY); -LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_NOTICE ); +LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_INFO );int tcp_wait_connect (int lfd,int retry_tenths)
fence/agents/xvm/fence_xvmd.c +5 -3
@@ -43,12 +43,13 @@ static int reload_key;LOGSYS_DECLARE_SYSTEM (NULL ,LOG_MODE_OUTPUT_STDERR |LOG_MODE_OUTPUT_SYSLOG_THREADED | +LOG_MODE_SHORT_FILELINE |LOG_MODE_OUTPUT_FILE |LOG_MODE_BUFFER_BEFORE_CONFIG ,LOGDIR "/fence_xvmd.log" ,SYSLOGFACILITY ); -LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_NOTICE ); +LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_INFO );int cleanup_xml (char *xmldesc,char **ret,size_t *retsz);
@@ -762,7 +763,7 @@ get_logsys_config_data(int *debug) {int ccsfd =-1 , loglevel =LOG_LEVEL_NOTICE , facility =SYSLOGFACILITY ;char *val =NULL , *error =NULL ; -unsigned int logmode; +unsigned int logmode =0 ;int global_debug =0 ;log_printf (LOG_DEBUG ,"Loading logsys configuration information\n" );
@@ -917,7 +918,7 @@ main(int argc, char **argv) {fence_xvm_args_t args;int mc_sock; -unsigned int logmode; +unsigned int logmode =0 ;char key[MAX_KEY_LEN ];int key_len =0 , x;char *my_options ="dfi:a:p:C:U:c:k:u?hLXV" ;
@@ -951,6 +952,7 @@ main(int argc, char **argv)get_logsys_config_data (&args.debug); }else { logmode =logsys_config_mode_get (); + logmode &= ~LOG_MODE_DISPLAY_FILELINE ;log_config_done (logmode); }
fence/agents/xvm/ip_lookup.c +1 -1
@@ -22,7 +22,7 @@#include "ip_lookup.h" #include "debug.h" -LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_NOTICE ); +LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_INFO );static int send_addr_dump (int fd,int family)
fence/agents/xvm/mcast.c +1 -1
@@ -25,7 +25,7 @@#include "mcast.h" #include "debug.h" -LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_NOTICE ); +LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_INFO );/** Sets up a multicast receive socket
fence/agents/xvm/options.c +1 -1
@@ -25,7 +25,7 @@#include "options.h" #include "debug.h" -LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_NOTICE ); +LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_INFO );/* Assignment functions */
fence/agents/xvm/simple_auth.c +1 -1
@@ -13,7 +13,7 @@#include "simple_auth.h" #include "debug.h" -LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_NOTICE ); +LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_INFO );void print_hash (unsigned char *hash,size_t hashlen)
fence/agents/xvm/tcp.c +1 -1
@@ -16,7 +16,7 @@#include "debug.h" -LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_NOTICE ); +LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_INFO );static int connect_nb (int fd,struct sockaddr *dest,socklen_t len,int timeout);
fence/agents/xvm/virt.c +1 -1
@@ -9,7 +9,7 @@#include "virt.h" #include "debug.h" -LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_NOTICE ); +LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_INFO );static int _compare_virt (const void *_left,const void *_right)
fence/agents/xvm/xml.c +1 -1
@@ -15,7 +15,7 @@#include "debug.h" #endif -LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_NOTICE ); +LOGSYS_DECLARE_SUBSYS ("XVM" ,LOG_LEVEL_INFO ); xmlNodePtr
hooks/post-receive
--
Cluster Project