Log issues/suggestion with info
@@ -67,7 +67,11 @@ class ResolutionManager(CoreSysAttributes):
@issues.setter
def issues(self, issue: Issue) -> None:
"""Add issues."""
- if issue not in self._issues:
+ if issue in self._issues:
+ return
+ _LOGGER.info(
+ "Create new issue %s - %s / %s", issue.type, issue.context, issue.reference
+ )
self._issues.append(issue)
@property
@@ -78,7 +82,14 @@ class ResolutionManager(CoreSysAttributes):
@suggestions.setter
def suggestions(self, suggestion: Suggestion) -> None:
"""Add suggestion."""
- if suggestion not in self._suggestions:
+ if suggestion in self._suggestions:
+ return
+ _LOGGER.info(
+ "Create new suggestion %s - %s / %s",
+ suggestion.type,
+ suggestion.context,
+ suggestion.reference,
+ )
self._suggestions.append(suggestion)
@property
