HomeClusterLabs Projects

Refactor: various: Replace pcmk__log_else() with pcmk__if_tracing()

Description

Refactor: various: Replace pcmklog_else() with pcmkif_tracing()

The new macro executes one action if tracing is enabled or another
action if tracing is not enabled. We give up the ability to select based
on log level (now we hard-code LOG_TRACE), but the existing callers only
use LOG_TRACE anyway.

Ref T559

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

Details

Provenance
nrwahl2Authored on Jan 30 2023, 4:53 AM
Parents
rPb4284ad13fbc: Merge pull request #3013 from xuezhixin/main
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task