Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging improvements #3803

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Logging improvements #3803

wants to merge 7 commits into from

Conversation

kgaillot
Copy link
Contributor

No description provided.

cib_file_read_and_verify() can return other errors than were being
caught.
Previously, terminate_cib() would log an info message, and most callers
would log additional, partially redundant messages. Now, log at the
callers (who have better context), and don't log in terminate_cib().

Also, improve the wording of the messages, and drop the no longer
necessary caller argument to terminate_cib().
Avoid logging XML (especially at notice level), instead picking out the
interesting attributes. Previously, the message was at debug level
(instead of notice) if the DC's CIB was used, but I think it makes sense
to always log at notice for troubleshooting purposes.
Previously, the controller could create a dot file of its FSA
transitions -- as trace log messages. Someone would have to copy and
paste the relevant portion of each trace log into a file to use it.
Stop the insanity now.
... and de-functionize crmd_init().

crmd_fast_exit() -> crm_exit() already logs an exit message, so we don't
need a separate one here.
Don't log that we're requesting execution if we're not, and make the
go/no-go logs more consistent. Also, drop a redundant log for local
execution in execute_rsc_action().
@kgaillot
Copy link
Contributor Author

This is not final and needs testing. A long lab had problems. But if anyone wants to pick it up and finish it, they're welcome to it :)

@kgaillot kgaillot marked this pull request as draft January 15, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant