This worked. Let me know if there is a better way. From crm.h:<br><br>#ifdef ALAN_JONES_WANTS_HIS_LOG_MESSAGES<br>#define do_crm_log_unlikely(level, fmt, args...) do { \<br> if(__likely(crm_log_level < (level))) { \<br>
continue; \<br> } else if((level) < LOG_DEBUG_2) { \<br> cl_log(level, "%s: " fmt, __PRETTY_FUNCTION__ , ##args); \<br>
} else { \<br> cl_log(LOG_DEBUG, "debug%d: %s: " fmt, \<br> level-LOG_INFO, __PRETTY_FUNCTION__ , ##args); \<br>
} \<br> } while(0)<br>#else<br>#define do_crm_log_unlikely(level, fmt, args...) do { \<br> (void)(level); \<br>
cl_log(LOG_INFO, fmt, ##args); \<br> } while(0)<br>#endif<br><br><br><div class="gmail_quote">On Thu, Apr 1, 2010 at 4:03 PM, Alan Jones <span dir="ltr"><<a href="mailto:falancluster@gmail.com">falancluster@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>I would like to set debugging levels higher than zero with pacemaker/corosync.<br><br>
[root@fc12-a heartbeat]# ./crmd version<br>CRM Version: 1.0.5 (ee19d8e83c2a5d45988f1cee36d334a631d84fc7)<br>[root@fc12-a heartbeat]# corosync -v<br>
Corosync Cluster Engine, version '1.1.2' SVN revision '2539'<br>Copyright (c) 2006-2009 Red Hat, Inc.<br><br>What I would like is to only write log messages to private files and not syslog<br>and to enable debug log messages from pacemaker, particularly the pengine.<br>
So far I have corosync writing to its own log file and pacemaker writing to<br>both syslog and through ha_logd to ha-log and ha-debug. However, both outputs<br>are the same.<br><br>It seems there are only two configuration options for pacemaker as started by<br>
corosync: use_logd which I've enabled and use_mgmtd which I don't understand.<br>There is no documentation for the service section of corosync.conf that I could<br>find, except for lib/ais/plugin.c which has no comments.<br>
<br>- How to I turn off output to syslog by pacemaker?<br>- How to I enable all those nice debug prints in pacemaker source to go to some file?<br><br>Thanks!<br><font color="#888888">Alan<br><br>
</font></blockquote></div><br>