[ClusterLabs] How to output debug messages in the log file?
Ken Gaillot
kgaillot at redhat.com
Tue Oct 3 10:23:22 EDT 2023
On Tue, 2023-10-03 at 18:19 +0800, Jack via Users wrote:
> I wrote a resource file Stateful1 in /lib/ocf/resources/pacemaker on
> Ubuntu 22.04. It didn't working. So I wrote ocf_log debug "hello
> world" in the file Stateful1. But it didn't output debug messages.
> How can I output debug messages?
>
Hi,
Set PCMK_debug=true wherever your distro keeps environment variables
for daemons (/etc/sysconfig/pacemaker, /etc/default/pacemaker, etc.).
Debug messages will show up in the Pacemaker detail log (typically
/var/log/pacemaker/pacemaker.log).
--
Ken Gaillot <kgaillot at redhat.com>
More information about the Users
mailing list