[Pacemaker] ocf_log debug ... doesn't?
Florian Haas
florian.haas at linbit.com
Wed Jun 17 15:23:25 UTC 2009
Dejan,
On 2009-06-17 16:46, Dejan Muhamedagic wrote:
>> Am I overlooking something blatantly obvious?
>
> Did you try logger -p trala.debug ... ? Does that work? If so,
> then ocf_log debug should work too. ocf_log is reduced to either
> logger(1) or ha_logger(1) call (see .ocf-shellfuncs and
> /etc/ha.d/shellfuncs). Unless I'm very wrong ;-)
logger -p whatever.debug works just nicely.
Now:
ha_debug() {
if [ "x${HA_debug}" = "x0" ] ; then
return 0
fi
if [ "x${HA_LOGD}" = "xyes" ] ; then
ha_logger -t "${HA_LOGTAG}" -D "ha-debug" "$@"
if [ "$?" -eq "0" ] ; then
return 0
fi
fi
if
[ -n "$HA_LOGFACILITY" ]
then
: logging through syslog
logger -t "$HA_LOGTAG" -p "${HA_LOGFACILITY}.debug" "${*}"
fi
if
[ -n "$HA_DEBUGLOG" ]
then
: appending to $HA_DEBUGLOG
Echo "$HA_LOGTAG: "`hadate`"${*}" >> $HA_DEBUGLOG
else
Echo "$HA_LOGTAG: `hadate`${*}: ${HA_LOGFACILITY}" >&2
fi
}
Where exactly does it set HA_LOGFACILITY?
Cheers,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20090617/a0250ad1/attachment-0004.sig>
More information about the Pacemaker
mailing list