HomeClusterLabs Projects

Refactor: various: Use pcmk__set_env_option() for ocf_log() vars

Description

Refactor: various: Use pcmk__set_env_option() for ocf_log() vars

Currently ocf_log() looks for HA_{LOGFACILITY,LOGFILE,DEBUGLOG}.
However, in general we use the "HA_" prefix only for backward
compatibility and prefer "PCMK_". Using pcmk__set_env_option() for these
sets the options with both prefixes for future-proofing and consistency.

Same for one occurrence of "HA_debug" in crm_resource_runtime.c.

Note also the capitalization; our equivalent internal environment
variables are lowercase after the prefix.

Ref T637

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Oct 16 2023, 3:03 PM
Parents
rPb9a54c4db0f7: Refactor: libcrmcommon: pcmk__set_env_option() takes compat argument
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task