HomeClusterLabs Projects

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

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

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
Tasks
Restricted Maniphest Task

Commit No Longer Exists

This commit no longer exists in the repository.