HomeClusterLabs Projects

Log: scheduler: functionize getting a loggable node name

Description

Log: scheduler: functionize getting a loggable node name

A lot of log messages include a node name. We generally do a good job of
ensuring that the node structure is not null before using it, but it's still
easy to slip up.

Also, while we currently require all nodes to have a name and ID, it's
conceivable that one might not (with a future supported cluster stack, for
example). So, try name, and fall back to ID.

Details

Provenance
kgaillotAuthored on Jun 6 2022, 4:39 PM
Parents
rP344b73b73d10: Merge pull request #2842 from kgaillot/doc
Branches
Unknown
Tags
Unknown