Hello, I'm using the ocf_log command in my ocf-resource-agents, e.g. something like:
ocf_log debug "blabla something I only want to see when debugging" I'm using logd with the following config file: ==== /etc/logd.conf ========== debugfile /var/log/ha-debug logfacility local0 ============================== I would expect to see my debug logging only in the /var/log/ha-debug-file. But in /var/log/messages I find: Mar 28 11:11:32 node1 lrmd: [26973]: info: RA output: (rsc_my_resource:monitor:stderr) 2007/03/28_11:11:32 DEBUG: blabla something I only want to see when debugging Please note the upper case "DEBUG", which corresponds to the __OCF_PRIO set in /usr/lib/heartbeat/ocf-shellfuncs. The hearbeat processes use lower case "debug" in their output and their debug-output only appears /var/log/ha-debug, as expected. Could it be that logd does not recognise "DEBUG" as debug logging and thus puts it to the syslog ? Or am I totally misunderstanding the concept behind the ocf_log-command ? I also observed that the "debug"-setting in the ha.cf-file does not have an influence on the ocf_log-output. Thank you for any ideas and regards, Bernhard -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
