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

CFE-4159: Changed to info log level on promise repaired for groups promise type #89

Closed
wants to merge 1 commit into from

Conversation

larsewi
Copy link
Contributor

@larsewi larsewi commented Jan 18, 2024

No description provided.

Ticket: CFE-4159
Changelog: Title
Signed-off-by: larsewi <[email protected]>
@@ -200,7 +200,7 @@ def evaluate_promise(self, promiser, attributes, meta):
return Result.NOT_KEPT

if repairs > 0:
self.log_verbose("Promise '%s' repaired" % promiser)
self.log_info("Promise '%s' repaired" % promiser)
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is right. The outcome of the promise fits well in verbose log. What we'd like in the info log is real (human readable) information about what was changed.

I see there is already 1 good log message for this above (Deleted group '%s').

So I'd say keep this one as is, but introduce other info log messages further up / where the changes are actually made.

Some ideas;

Added 'larsewi' to 'developers' group
Removed 'larsewi' from 'developers' group
Set members of 'developers' group to be: larsewi, craigcomstock 

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed, as we were just discussing this in regards to the ini module. 👍

@larsewi
Copy link
Contributor Author

larsewi commented Jan 31, 2024

Failed to reproduce the error message, even when using the same policy that I used when I logged this ticket. Closing the ticket. Looking through the code, I cannot see any place where the module returns Result.REPAIRED without logging a message with log level info.

@larsewi larsewi closed this Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants