HomeClusterLabs Projects

Fix: tools: Use formatted output for more errors in crm_mon.

Description

Fix: tools: Use formatted output for more errors in crm_mon.

Many error messages were being printed out with fprintf, printf, or
print_as which means they were unconditionally printed to the console
instead of through the formatted output system. For XML and other
structured formats, this means getting plain text printed out in the
middle of the rest.

This doesn't fix all error messages. Many errors are still using
print_as, but those are only related to refreshing the screen in a loop
which should not affect XML or HTML output. Other error messages occur
before formatted output is active, or if there's an error in the
formatted output itself. These have likewise not been converted.

See: rhbz#1793653

Details

Provenance
clumensAuthored on Jan 27 2020, 1:26 PM
Parents
rP4544c9b82333: Merge pull request #1987 from clumens/unit-tests
Branches
Unknown
Tags
Unknown

Event Timeline