Skip to content

Log facade messages based on the type requested#3309

Merged
sgoggins merged 1 commit intomainfrom
log-by-type
Oct 16, 2025
Merged

Log facade messages based on the type requested#3309
sgoggins merged 1 commit intomainfrom
log-by-type

Conversation

@MoralCode
Copy link
Contributor

Description

This PR fixes #3307

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Copy link
Member

@sgoggins sgoggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could be missing some "automatic feature", but if I'm not we need to address the primary case, which is ALL CAPS in the settings.

log_options = ('Error','Quiet','Info','Verbose','Debug')
self.logger.info(f"* {status}\n")
logmsg = f"* {status}\n"
if level == "Error":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message level is usually set in all caps like , DEBUG or ERROR .. does this logging checker do anything to account for differences in case? I think it needs to ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is added/managed by the logging package (i.e. when self.logger.<whatevr>() is called)

All we need to worry about here is the level parameter being passed to this function. All the existing calls to this logging helper that I see use Camel case and the existing check for whether Debug mode is requested does not account for casing, so i think its fine.

I will also be likely entirely rewriting all this logic if/when i fix #3308

@MoralCode MoralCode added the ready Items tested and seeking additional approvals or a merge. Usually for items under active development label Oct 16, 2025
@sgoggins sgoggins self-requested a review October 16, 2025 19:36
Copy link
Member

@sgoggins sgoggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sgoggins sgoggins merged commit 1fc79ae into main Oct 16, 2025
15 checks passed
@MoralCode MoralCode deleted the log-by-type branch November 8, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready Items tested and seeking additional approvals or a merge. Usually for items under active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Print facade logs at the level the user specifies

2 participants